From cb849e5a8e0280d9fc10941d915f6252a0ad1cdc Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Mon, 12 Jun 2017 06:52:53 -0400 Subject: Remove return statements to silence linter warning --- todolist/file_store.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'todolist') 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 -- cgit v1.3