chore: code cleanup

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>

---------

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
Co-authored-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
Christopher Angelo Phillips
2023-06-05 17:01:00 +00:00
committed by GitHub
co-authored by guoguangwu
parent d676e5e781
commit f07581f504
11 changed files with 23 additions and 86 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
package linux
import (
"io/ioutil"
"io"
"os"
"testing"
@@ -539,7 +539,7 @@ func retrieveFixtureContentsAsString(fixturePath string, t *testing.T) string {
}
defer fixture.Close()
b, err := ioutil.ReadAll(fixture)
b, err := io.ReadAll(fixture)
if err != nil {
t.Fatalf("unable to read fixture file: %+v", err)
}