Skip to content

Commit

Permalink
fix: replace equal comparison by contains function
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszbarwicki committed Feb 28, 2024
1 parent 018c304 commit dbed67d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func getDockerfilePathsToIgnore(dir string) []string {

func containsString(slice []string, element string) bool {
for _, v := range slice {
if v == element {
if strings.Contains(element, v) {
return true
}
}
Expand Down

0 comments on commit dbed67d

Please sign in to comment.