Compare commits

..

No commits in common. "6fc00ba3dd5f3c0e882ab06126f216b85b2a09cf" and "696ea8953089c3872bca22ec24ca28139ef46cd3" have entirely different histories.

2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,4 @@
Copyright (c) 2019, Přemysl Eric Janouch <p@janouch.name> Copyright (c) 2019, Přemysl Janouch <p@janouch.name>
Permission to use, copy, modify, and/or distribute this software for any Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted. purpose with or without fee is hereby granted.

View File

@ -298,7 +298,6 @@ func loadDatabase() error {
if err != nil { if err != nil {
return err return err
} }
defer dbFile.Close()
if err := json.NewDecoder(dbFile).Decode(&db); err != nil { if err := json.NewDecoder(dbFile).Decode(&db); err != nil {
return err return err
} }