Skip to content

Commit

Permalink
fix: typo in document expressions - potential out of bounds index
Browse files Browse the repository at this point in the history
  • Loading branch information
davemooreuws committed May 19, 2022
1 parent 34fce2e commit 07be819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugins/document/document.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (exps ExpsSort) Less(i, j int) bool {
operatorCompare := strings.Compare(exps[j].Operator, exps[i].Operator)
if operatorCompare == 0 {
iVal := fmt.Sprintf("%v", exps[i].Value)
jVal := fmt.Sprintf("%v", exps[2].Value)
jVal := fmt.Sprintf("%v", exps[j].Value)

return strings.Compare(iVal, jVal) < 0
} else {
Expand Down

0 comments on commit 07be819

Please sign in to comment.