Skip to content

Commit

Permalink
Rename result to values
Browse files Browse the repository at this point in the history
Reference: #6179 (comment)
Signed-off-by: Eng Zer Jun <[email protected]>
  • Loading branch information
Juneezee committed Nov 25, 2024
1 parent 09609b2 commit 4742e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/transactions/logic/opcodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,8 @@ func OpcodesByVersion(version uint64) []OpSpec {
}
}
}
result := maps.Values(subv)
return slices.SortedFunc(result, func(a, b OpSpec) int {
values := maps.Values(subv)
return slices.SortedFunc(values, func(a, b OpSpec) int {
return cmp.Compare(a.Opcode, b.Opcode)
})
}
Expand Down

0 comments on commit 4742e34

Please sign in to comment.