Skip to content

Commit 3e851d5

Browse files
committed
Fix unhandled error in test cleanup
- Explicitly ignore error from os.Remove() in test cleanup - Resolves Gosec G104 (CWE-703) security warning
1 parent d4b42af commit 3e851d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

artifactory/utils/maven/settingsxml_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func TestConfigureArtifactoryRepository_URLTrimming(t *testing.T) {
353353
"For input '%s', expected URL '%s'", tc.input, tc.expected)
354354

355355
// Clean up for next iteration
356-
os.Remove(settingsPath)
356+
_ = os.Remove(settingsPath)
357357
}
358358
}
359359

0 commit comments

Comments
 (0)