test: 消除单元测试警告信息

This commit is contained in:
Argo-Cloud 2020-11-18 14:50:30 +08:00
parent 2da0738339
commit 763061caf8
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ namespace Bootstrap.Admin
var foo = new FooMapper();
Mappers.Register(t.Assembly, foo);
try { callback(); }
catch (Exception ex) { throw ex; }
catch (Exception) { throw; }
finally
{
Mappers.Revoke(foo);
@ -59,7 +59,7 @@ namespace Bootstrap.Admin
var foo = new FooMapper();
Mappers.Register(typeof(T), foo);
try { callback(); }
catch (Exception ex) { throw ex; }
catch (Exception) { throw; }
finally
{
Mappers.Revoke(foo);