*: over 20 staticcheck fixes

This commit is contained in:
wpedrak
2021-03-18 15:05:22 +01:00
parent 2932969b91
commit dac6e37ea1
21 changed files with 61 additions and 68 deletions

View File

@@ -120,8 +120,8 @@ func (ep *ExpectProcess) ExpectFunc(f func(string) bool) (string, error) {
}
}
ep.mu.Unlock()
return "", fmt.Errorf("Match not found."+
" Set EXPECT_DEBUG for more info Err: %v, last lines:\n%s\n\n",
return "", fmt.Errorf("match not found."+
" Set EXPECT_DEBUG for more info Err: %v, last lines:\n%s",
ep.err, strings.Join(lastLinesBuffer, ""))
}