Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 7bd80ba

Browse files
committed
Move containsString func into scan_controller
1 parent 7ea52e7 commit 7bd80ba

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

operator/controllers/execution/scans/scan_controller.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,13 @@ func removeString(slice []string, s string) (result []string) {
465465
}
466466
return
467467
}
468+
469+
// Helper functions to check and remove string from a slice of strings.
470+
func containsString(slice []string, s string) bool {
471+
for _, item := range slice {
472+
if item == s {
473+
return true
474+
}
475+
}
476+
return false
477+
}

operator/controllers/execution/scans/utils.go

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)