mirror of
https://github.com/Slug-Boi/cocommit.git
synced 2026-05-13 12:45:47 +00:00
chore: defer close
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user