diff options
Diffstat (limited to 'todolist')
| -rw-r--r-- | todolist/file_store.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/todolist/file_store.go b/todolist/file_store.go index e92f2d7..6111de2 100644 --- a/todolist/file_store.go +++ b/todolist/file_store.go @@ -43,7 +43,6 @@ func (f *FileStore) Load() ([]*Todo, error) { if err != nil { fmt.Println("No todo file found!") fmt.Println("Initialize a new todo repo by running 'todo init'") - return nil, err os.Exit(0) } @@ -51,7 +50,6 @@ func (f *FileStore) Load() ([]*Todo, error) { jerr := json.Unmarshal(data, &todos) if jerr != nil { fmt.Println("Error reading json data", jerr) - return nil, jerr os.Exit(1) } f.Loaded = true |
