From 060b8ab7284a7ad30633b0678985fd5b0ba1ec8b Mon Sep 17 00:00:00 2001 From: Kevin Schoon Date: Sat, 20 Jan 2018 20:19:14 +0800 Subject: [PATCH] ignore empty tags --- store.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/store.go b/store.go index 60b69f5..a761735 100644 --- a/store.go +++ b/store.go @@ -73,7 +73,9 @@ func (s Store) ReadTasks() ([]*Task, error) { if err != nil { return nil, err } - task.Tags = strings.Split(tags, ",") + if tags != "" { + task.Tags = strings.Split(tags, ",") + } pomodoros, err := s.ReadPomodoros(task.ID) if err != nil { return nil, err