From 078c6d8bd5807f92e2fddb1c1a0874d969c3591f Mon Sep 17 00:00:00 2001 From: Louison SARLIN--MAGNUS Date: Fri, 3 Apr 2026 17:36:44 +0200 Subject: [PATCH] fix: initialising the json in case of creation from scratch --- utils/read_backlog.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/read_backlog.go b/utils/read_backlog.go index f7c56cb..df81126 100644 --- a/utils/read_backlog.go +++ b/utils/read_backlog.go @@ -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)