chore: defer close

This commit is contained in:
Slug-Boi
2025-04-02 18:34:43 +02:00
parent 39781da299
commit 4a8572efdf
+1
View File
@@ -80,6 +80,7 @@ func DeleteOneAuthor(author string) {
fmt.Println("Error opening file: ", err) fmt.Println("Error opening file: ", err)
return return
} }
defer file.Close()
// check that users aren't empty // check that users aren't empty
if len(Users) < 1 { if len(Users) < 1 {