aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-06-12 06:52:53 -0400
committerGrant Ammons <gammons@gmail.com>2017-06-12 06:52:53 -0400
commitcb849e5a8e0280d9fc10941d915f6252a0ad1cdc (patch)
treea2f20813ea175c723f3094ff495fe71d2f29a516
parent8d3cc3ca53d6ca10a35376a4613975718ceefef7 (diff)
Remove return statements to silence linter warning
-rw-r--r--todolist/file_store.go2
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