Skip to content

Commit 4381871

Browse files
committed
address linting issue
1 parent 0a2baa4 commit 4381871

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_util.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,7 @@ func (t *testTxn) Put(ctx context.Context, key dstore.Key, value []byte) error {
330330
}
331331

332332
func (t *testTxn) Delete(ctx context.Context, key dstore.Key) error {
333-
if _, ok := t.dirty[key]; ok {
334-
delete(t.dirty, key)
335-
}
333+
delete(t.dirty, key)
336334
return t.committed.Delete(ctx, key)
337335
}
338336

0 commit comments

Comments
 (0)