Skip to content

Commit

Permalink
fixing linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sethiyash committed Nov 24, 2022
1 parent eb32921 commit f8a4b93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkg/kapp/resources/mod_field_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ func (t FieldCopyMod) apply(obj interface{}, path Path, fullPath Path, srcs map[
return false, fmt.Errorf("Unexpected non-map found: %T", obj)
}
var anyUpdated bool
for key, _ := range typedObj {
for key, obj := range typedObj {
if regex.MatchString(key) {
keyPointer := key
path[len(path)-1] = &PathPart{MapKey: &keyPointer}

updated, err := t.apply(obj, path[i:], fullPath[:len(fullPath)-1], srcs)
newFullPath := fullPath[:len(fullPath)-1]
updated, err := t.apply(obj, path[i:], newFullPath, srcs)
if err != nil {
return false, err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/kapp/resources/mod_field_remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ func (t FieldRemoveMod) apply(obj interface{}, path Path) error {
}

panic("unreachable")
}
}

0 comments on commit f8a4b93

Please sign in to comment.