Skip to content

Commit

Permalink
correcting typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gizas committed Mar 14, 2024
1 parent 4c20caf commit dac26f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion utils/hints.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,6 @@ func GenerateHints(annotations mapstr.M, container, prefix string, allSupportedH
if err != nil {
continue
}

}
}
}
Expand Down Expand Up @@ -348,6 +347,7 @@ func checkSupportedHints(actualannotation string, allSupportedHints []string, st
return found
}

// checkSupportedHintsSets gest the data_streams or metricset lists that are defined. Searches inside specific hints of those lists and returns the unsupported list of hints found
func checkSupportedHintsSets(annotations mapstr.M, key, prefix, actualannotation string, streamlist, allSupportedHints, incorrecthints []string) []string {
found := false

Check failure on line 352 in utils/hints.go

View workflow job for this annotation

GitHub Actions / lint

assigned to found, but reassigned without using the value (wastedassign)
for _, streams := range streamlist {
Expand Down
4 changes: 0 additions & 4 deletions utils/hints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ func TestGetProcessors(t *testing.T) {

func TestGenerateHints(t *testing.T) {

<<<<<<< HEAD
var allSupportedHints = []string{"enabled", "package", "module", "integration", "data_streams", "metricsets", "host", "period", "timeout", "metrics_path", "username", "password", "stream", "processors", "multiline", "json", "disable"}
=======
var allSupportedHints = []string{"enabled", "module", "integration", "datas_treams", "host", "period", "timeout", "metrics_path", "username", "password", "stream", "processors", "multiline", "json", "disable"}
>>>>>>> 7490558445cb8d3248462255edc8ac64bc18b8eb

tests := []struct {
name string
Expand Down

0 comments on commit dac26f6

Please sign in to comment.