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)
|
||||
Check(err)
|
||||
defer f.Close()
|
||||
f.Write([]byte("[]"))
|
||||
|
||||
} else {
|
||||
Check(err)
|
||||
|
||||
Reference in New Issue
Block a user