Skip to content

Commit

Permalink
Making linter happy
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksey Dukhovniy <alex.dukhovniy@googlemail.com>
  • Loading branch information
zen-dog committed Mar 26, 2020
1 parent 2e3c446 commit 7506140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apis/kudo/v1beta1/instance_types_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ func GetExistingParamDefinitions(params map[string]string, ov *OperatorVersion)
func GetParamDefinitions(params map[string]string, ov *OperatorVersion) ([]Parameter, error) {
defs := []Parameter{}
for p1 := range params {
p1 := p1
p2 := funk.Find(ov.Spec.Parameters, func(e Parameter) bool {
return e.Name == p1
})
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/kudo/v1beta1/instance_types_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ func TestGetParamDefinitions(t *testing.T) {
},
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
got, err := GetParamDefinitions(tt.params, tt.ov)

Expand Down

0 comments on commit 7506140

Please sign in to comment.