Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #226: Use strings.HasPrefix instead of regexp.MatchString
This fixes: pkg/crc/preflight/preflight_checks_linux.go:277:35: SA6000: calling regexp.MatchString in a loop has poor performance, consider using regexp.Compile (staticcheck) match, err := regexp.MatchString("^crc\\s", stdOut) ^ pkg/crc/preflight/preflight_checks_linux.go:346:35: SA6000: calling regexp.MatchString in a loop has poor performance, consider using regexp.Compile (staticcheck) match, err := regexp.MatchString("^crc\\s", stdOut) ^ #226
- Loading branch information