Skip to content

Commit

Permalink
Fix ineffassign warnings. (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr committed Jan 4, 2019
1 parent 393536c commit ec68e65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backup_test.go
Expand Up @@ -468,7 +468,7 @@ func TestBackupLoadIncremental(t *testing.T) {
return nil
})
require.NoError(t, err)
since, err = db1.Backup(&bb, since)
_, err = db1.Backup(&bb, since)
require.NoError(t, err)
require.NoError(t, db1.Close())
}
Expand Down
3 changes: 2 additions & 1 deletion db_test.go
Expand Up @@ -329,8 +329,9 @@ func TestForceCompactL0(t *testing.T) {

opts.managedTxns = true
db, err = Open(opts)
defer db.Close()
require.NoError(t, err)
require.Equal(t, len(db.lc.levels[0].tables), 0)
require.NoError(t, db.Close())
}

// Put a lot of data to move some data to disk.
Expand Down

0 comments on commit ec68e65

Please sign in to comment.