Skip to content

Commit 0fde24a

Browse files
committed
Add note explaining redundant try/catch
1 parent 5986c56 commit 0fde24a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/SIL.Harmony/Db/CrdtRepository.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ public async Task AddSnapshots(IEnumerable<ObjectSnapshot> snapshots)
332332
}
333333
}
334334

335+
// this extra try/catch was added as a quick way to get the NewEntityOnExistingEntityIsNoOp test to pass
336+
// it will be removed again in a larger refactor in https://github.com/sillsdev/harmony/pull/56
335337
try
336338
{
337339
await _dbContext.SaveChangesAsync();

0 commit comments

Comments
 (0)