We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 295db7e commit 56a9bc2Copy full SHA for 56a9bc2
lockjson/lockjson.go
@@ -102,8 +102,8 @@ func validate(lockJSON *LockJSON) error {
102
}
103
104
// Validate if duplicate profiles[]/repos_path[] exist
105
- dup = make(map[string]bool, len(lockJSON.Profiles)*10)
106
for _, profile := range lockJSON.Profiles {
+ dup = make(map[string]bool, len(lockJSON.Profiles)*10)
107
for _, reposPath := range profile.ReposPath {
108
if _, exists := dup[reposPath]; exists {
109
return errors.New("duplicate 'repos_path' (" + reposPath + ") in profile '" + profile.Name + "'")
0 commit comments