diff --git a/pkg/proc/scope_test.go b/pkg/proc/scope_test.go index eccc67e0..728aeb43 100644 --- a/pkg/proc/scope_test.go +++ b/pkg/proc/scope_test.go @@ -187,7 +187,7 @@ func (check *scopeCheck) Parse(descr string, t *testing.T) { } varcheck.name = strings.TrimSpace(decl[:space]) varcheck.typ = strings.TrimSpace(decl[space+1:]) - if strings.Index(varcheck.typ, " ") >= 0 { + if strings.Contains(varcheck.typ, " ") { t.Fatalf("could not parse scope comment %q (%q)", descr, decl) }