mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 07:10:41 -08:00
ci(deps): fix gocritic in ".*_test.go$" (#6763)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ func touch(t *testing.T, name string) {
|
||||
}
|
||||
}
|
||||
|
||||
func write(t *testing.T, name string, content string) {
|
||||
func write(t *testing.T, name, content string) {
|
||||
err := os.WriteFile(name, []byte(content), 0666)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user