Compare commits
2 Commits
696ea89530
...
6fc00ba3dd
Author | SHA1 | Date |
---|---|---|
Přemysl Eric Janouch | 6fc00ba3dd | |
Přemysl Eric Janouch | 93b29a5346 |
2
LICENSE
2
LICENSE
|
@ -1,4 +1,4 @@
|
||||||
Copyright (c) 2019, Přemysl Janouch <p@janouch.name>
|
Copyright (c) 2019, Přemysl Eric 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.
|
||||||
|
|
|
@ -298,6 +298,7 @@ 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue