Skip to content

Commit

Permalink
remove 0 length check
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Jan 2, 2025
1 parent 87c7e5e commit 51bdb7a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions store/v2/db/pebbledb.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ func (db *PebbleDB) Get(key []byte) ([]byte, error) {
return nil, fmt.Errorf("failed to perform PebbleDB read: %w", err)
}

if len(bz) == 0 {
return nil, closer.Close()
}

return bz, closer.Close()
}

Expand Down

0 comments on commit 51bdb7a

Please sign in to comment.