brandboat commented on code in PR #763:
URL: https://github.com/apache/yunikorn-core/pull/763#discussion_r1439053641


##########
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:
   Yes it's exist from the beginning, you can try `./tools/golangci-lint run` 
and search error `G601: Implicit memory aliasing in for loop`.



-- 
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]

Reply via email to