Fix crash with fresh data
This commit is contained in:
parent
14424c16ca
commit
7d1a2d7efd
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ func main() {
|
||||||
persistence.SetPath(data)
|
persistence.SetPath(data)
|
||||||
|
|
||||||
// Initialise and load the accountant
|
// Initialise and load the accountant
|
||||||
accountant := &internal.Accountant{}
|
accountant := internal.NewAccountant()
|
||||||
if err := persistence.Load("accounts", accountant); err != nil {
|
if err := persistence.Load("accounts", accountant); err != nil {
|
||||||
log.Fatalf("failed to load account data: %s", err)
|
log.Fatalf("failed to load account data: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue