Skip to content

Commit 5115294

Browse files
committed
[refactor] clarify recovery repository test guards
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th>
1 parent 7664743 commit 5115294

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎app/test/unit/draft_recovery_test.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ class Store implements DraftRepository {
3636
if (failure != null) {
3737
throw DraftStorageException(failure!);
3838
}
39-
if (generation != expectedGeneration || value.generation <= generation)
39+
if (generation != expectedGeneration || value.generation <= generation) {
4040
throw const DraftStorageException(DraftStorageFailure.conflict);
41+
}
4142
writes.add(value);
4243
snapshot = value;
4344
generation = value.generation;

0 commit comments

Comments
 (0)