chia7712 commented on code in PR #763:
URL: https://github.com/apache/yunikorn-core/pull/763#discussion_r1439052262
##########
pkg/common/configs/configvalidator.go:
##########
@@ -734,7 +756,8 @@ func Validate(newConfig *SchedulerConfig) error {
// check uniqueness
partitionMap := make(map[string]bool)
- for i, partition := range newConfig.Partitions {
+ for i := range newConfig.Partitions {
+ partition := newConfig.Partitions[i]
Review Comment:
this lint error is caused by calling reference of `partition`, right? Is
this lint error existent before?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]