diff --git a/pkg/params/params_test.go b/pkg/params/params_test.go index 050bc98..3077691 100644 --- a/pkg/params/params_test.go +++ b/pkg/params/params_test.go @@ -87,7 +87,7 @@ func TestGetIndex(t *testing.T) { t.Errorf("GetIndex() expected error but got nil") return } - if tt.errMsg != "" && !contains(err.Error(), tt.errMsg) { + if tt.errMsg != "" && !strings.Contains(err.Error(), tt.errMsg) { t.Errorf("GetIndex() error = %v, want error containing %q", err, tt.errMsg) } return @@ -102,7 +102,3 @@ func TestGetIndex(t *testing.T) { }) } } - -func contains(s, substr string) bool { - return strings.Contains(s, substr) -}