Skip to content

Commit

Permalink
fix indexing issue in get resource
Browse files Browse the repository at this point in the history
  • Loading branch information
maorfr committed Sep 2, 2018
1 parent 7a376af commit fdb6c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/orca/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NewGetResourceCmd(out io.Writer) *cobra.Command {
fmt.Println(r.errorIndicator)
return
}
if desiredIndex+r.offset > len(data) {
if desiredIndex+r.offset >= len(data) {
fmt.Println(r.errorIndicator)
return
}
Expand Down

0 comments on commit fdb6c84

Please sign in to comment.