mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 07:10:41 -08:00
perf(misconf): replace with post-analyzers (#4090)
Signed-off-by: Simar <simar@linux.com> Co-authored-by: Simar <simar@linux.com>
This commit is contained in:
11
internal/testutil/error.go
Normal file
11
internal/testutil/error.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package testutil
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
|
||||
"github.com/samber/lo"
|
||||
)
|
||||
|
||||
var ErrNotExist string = lo.Ternary(runtime.GOOS == "windows",
|
||||
"The system cannot find the file specified.",
|
||||
"no such file or directory")
|
||||
Reference in New Issue
Block a user