fix: initialising the json in case of creation from scratch
This commit is contained in:
@@ -14,6 +14,7 @@ func InitBacklog(path string) []models.Task {
|
|||||||
f, err := os.Create(path)
|
f, err := os.Create(path)
|
||||||
Check(err)
|
Check(err)
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
|
f.Write([]byte("[]"))
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Check(err)
|
Check(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user