fix: initialising the json in case of creation from scratch

This commit is contained in:
2026-04-03 17:36:44 +02:00
parent 12de0f1b6c
commit 078c6d8bd5

View File

@@ -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)