Skip to content

Commit

Permalink
correct the variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
larryliuqing committed Feb 25, 2022
1 parent d275a00 commit 615298c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/models/monitoring/sort_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (raw *Metrics) Sort(target, order, identifier string) *Metrics {
// Record ordinals in the final result
v, ok := mv.Metadata[identifier]
if ok && v != "" {
if _, ok1 := resourceOrdinal[v]; !ok1 {
if _, ok := resourceOrdinal[v]; !ok {
resourceOrdinal[v] = ordinal
ordinal++
}
Expand Down

0 comments on commit 615298c

Please sign in to comment.