ignore empty tags

This commit is contained in:
Kevin Schoon 2018-01-20 20:19:14 +08:00
parent 8c071b0c94
commit 060b8ab728
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,9 @@ func (s Store) ReadTasks() ([]*Task, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
if tags != "" {
task.Tags = strings.Split(tags, ",") task.Tags = strings.Split(tags, ",")
}
pomodoros, err := s.ReadPomodoros(task.ID) pomodoros, err := s.ReadPomodoros(task.ID)
if err != nil { if err != nil {
return nil, err return nil, err