Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cool-develope committed Dec 8, 2022
1 parent d460ee6 commit 946c32d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mutable_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,9 @@ func (tree *MutableTree) GetImmutable(version int64) (*ImmutableTree, error) {
return nil, err
}
latestVersion, err := tree.ndb.getLatestVersion()
if err != nil {
return nil, err
}
if firstVersion > version || version > latestVersion {
return nil, ErrVersionDoesNotExist
}
Expand Down

0 comments on commit 946c32d

Please sign in to comment.