Skip to content

Commit 44e8b1d

Browse files
fix: Corrected gosec exception id
1 parent af3746c commit 44e8b1d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hacker-scoper/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func main() {
268268
if databaseIsUpdating {
269269
fmt.Println()
270270
path := tmpFile.Name()
271-
tmpFile.Close() // #nosec G304 -- There is no harm in potentially double-closing a temp file.
271+
tmpFile.Close() // #nosec G104 -- There is no harm in potentially double-closing a temp file.
272272
err := os.Remove(path)
273273
if err != nil {
274274
warning("Error deleting temp file at \"" + path + "\". Please ensure the file is deleted.")

0 commit comments

Comments
 (0)