Skip to content

Commit ee58820

Browse files
committed
FooBarTest, MasterDetail: Remove some silliness.
1 parent c0b3bb1 commit ee58820

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/NHibernate.Test/Legacy/FooBarTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4437,9 +4437,8 @@ public void NewSessionLifecycle()
44374437
//s.Flush();
44384438
t.Commit();
44394439
}
4440-
catch (Exception e)
4440+
catch (Exception)
44414441
{
4442-
Assert.IsNotNull(e); //getting ride of 'e' is never used compile warning
44434442
t.Rollback();
44444443
}
44454444
finally

src/NHibernate.Test/Legacy/MasterDetailTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,9 +678,9 @@ public void Serialization()
678678
s.GetIdentifier(d);
679679
s.Delete(d);
680680
}
681-
catch (Exception e)
681+
catch (Exception)
682682
{
683-
Assert.IsNotNull(e); //getting ride of 'e' is never used compile warning
683+
// Why are we ignoring exceptions here? /Oskar 2014-08-24
684684
}
685685
}
686686
s.Delete(m2);

0 commit comments

Comments
 (0)