Skip to content

Commit

Permalink
fix: go-lint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ipsum-0320 committed Sep 28, 2024
1 parent d3f94dc commit a7572b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/scheduler/core/spreadconstraint/group_clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ func (info *GroupClustersInfo) calcGroupScore(clusters []ClusterDetailInfo) int6
highScoreSum += cluster.Score
selectedNum++
}
var baseScore int64
baseScore = highScoreSum/selectedNum - (clusters[0].Score - clusters[len(clusters)-1].Score)
baseScore := highScoreSum/selectedNum - (clusters[0].Score - clusters[len(clusters)-1].Score)

return baseScore
}
Expand Down

0 comments on commit a7572b3

Please sign in to comment.