There was an error while loading. Please reload this page.
1 parent af3746c commit 44e8b1dCopy full SHA for 44e8b1d
1 file changed
src/hacker-scoper/main.go
@@ -268,7 +268,7 @@ func main() {
268
if databaseIsUpdating {
269
fmt.Println()
270
path := tmpFile.Name()
271
- tmpFile.Close() // #nosec G304 -- There is no harm in potentially double-closing a temp file.
+ tmpFile.Close() // #nosec G104 -- There is no harm in potentially double-closing a temp file.
272
err := os.Remove(path)
273
if err != nil {
274
warning("Error deleting temp file at \"" + path + "\". Please ensure the file is deleted.")
0 commit comments