diff options
| author | Grant Ammons <gammons@gmail.com> | 2017-06-12 06:52:53 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2017-06-12 06:52:53 -0400 |
| commit | cb849e5a8e0280d9fc10941d915f6252a0ad1cdc (patch) | |
| tree | a2f20813ea175c723f3094ff495fe71d2f29a516 /todolist | |
| parent | 8d3cc3ca53d6ca10a35376a4613975718ceefef7 (diff) | |
Remove return statements to silence linter warning
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 |
