fix: linting

This commit is contained in:
Morten Olsen
2025-12-12 12:35:25 +01:00
parent 49b51514df
commit 6de9b65d94
2 changed files with 5 additions and 5 deletions

View File

@@ -106,7 +106,7 @@ func (s *NucleiScanner) Scan(ctx context.Context, targets []string, options Scan
if err != nil {
return nil, fmt.Errorf("failed to create temp directory: %w", err)
}
defer os.RemoveAll(tmpDir)
defer func() { _ = os.RemoveAll(tmpDir) }()
// Write targets to a file
targetsFile := filepath.Join(tmpDir, "targets.txt")