Skip to content

Commit

Permalink
check nil
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Nov 11, 2024
1 parent 5328448 commit 3fe6f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versiondb/tsrocksdb/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (s Store) GetAtVersion(storeKey string, key []byte, version *int64) ([]byte
// HasAtVersion implements VersionStore interface
func (s Store) HasAtVersion(storeKey string, key []byte, version *int64) (bool, error) {
slice, err := s.GetAtVersionSlice(storeKey, key, version)
if err != nil {
if err != nil || slice == nil {
return false, err
}
defer slice.Free()
Expand Down

0 comments on commit 3fe6f96

Please sign in to comment.