Skip to content

Commit

Permalink
fix all lints
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Jan 14, 2024
1 parent 33d6190 commit 4dcf12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pebble.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,15 @@ func (itr *pebbleDBIterator) assertIsValid() {
}

// helper function to reduce code duplication
func (db *PebbleDB) set(key []byte, value []byte, sync pebble.WriteOptions) error {
func (db *PebbleDB) set(key []byte, value []byte, pebbleSync pebble.WriteOptions) error {
if len(key) == 0 {
return errKeyEmpty
}
if value == nil {
return errValueNil
}

err := db.db.Set(key, value, &sync)
err := db.db.Set(key, value, &pebbleSync)
if err != nil {
return err
}

Check warning on line 479 in pebble.go

View check run for this annotation

Codecov / codecov/patch

pebble.go#L478-L479

Added lines #L478 - L479 were not covered by tests
Expand Down

0 comments on commit 4dcf12a

Please sign in to comment.