summaryrefslogtreecommitdiff
path: root/controller/jobscontrollerimpl.go
diff options
context:
space:
mode:
Diffstat (limited to 'controller/jobscontrollerimpl.go')
-rw-r--r--controller/jobscontrollerimpl.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/jobscontrollerimpl.go b/controller/jobscontrollerimpl.go
index 78f4cdd..dfbdff7 100644
--- a/controller/jobscontrollerimpl.go
+++ b/controller/jobscontrollerimpl.go
@@ -396,7 +396,8 @@ func prepareFilterRegexp(arr []string) (*regexp.Regexp, error) {
var str strings.Builder
str.Grow(size)
for _, s := range arr {
- _, _ = str.WriteString("|(" + s + ")")
+ // WriteString never returns error (as of go 1.11.2) thus err is ignored.
+ _, _ = str.WriteString("|(" + s + ")") // nolint:gosec
}
return regexp.Compile(str.String()[1:])