diff --git a/xray/commands/audit/scarunner_test.go b/xray/commands/audit/scarunner_test.go index 900624f21..ac717e4c5 100644 --- a/xray/commands/audit/scarunner_test.go +++ b/xray/commands/audit/scarunner_test.go @@ -114,7 +114,7 @@ func createEmptyDir(t *testing.T, path string) string { func createEmptyFile(t *testing.T, path string) { file, err := os.Create(path) assert.NoError(t, err) - file.Close() + assert.NoError(t, file.Close()) } func TestGetScaScansToPreform(t *testing.T) {