Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Oct 9, 2024
1 parent a93194c commit 4cefb72
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions store/v2/root/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,7 @@ func (roa *Reader) Has(key []byte) (bool, error) {
}

func (roa *Reader) Get(key []byte) ([]byte, error) {
result, err := roa.rootStore.GetStateStorage().Get(roa.actor, roa.version, key)
if err != nil {
return nil, err
}

return result, nil
return roa.rootStore.GetStateStorage().Get(roa.actor, roa.version, key)
}

func (roa *Reader) Iterator(start, end []byte) (corestore.Iterator, error) {
Expand Down

0 comments on commit 4cefb72

Please sign in to comment.