aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-03-03 17:43:21 -0500
committerGrant Ammons <gammons@gmail.com>2017-03-03 17:43:21 -0500
commit871fb90b26a98ee3569c325940a5f4e380631c54 (patch)
tree14fae487e54d60f3af5e62cdf2b685d15784b4f4
parentf6c9296952b062803a4991d3f97f76d61b0cc488 (diff)
Fix a linter warning
-rw-r--r--todolist/filter.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/todolist/filter.go b/todolist/filter.go
index 2b25109..7705ca5 100644
--- a/todolist/filter.go
+++ b/todolist/filter.go
@@ -81,7 +81,7 @@ func (f *TodoFilter) filterContexts(input string) []*Todo {
func (f *TodoFilter) getArchived() []*Todo {
var ret []*Todo
for _, todo := range f.Todos {
- if todo.Archived == true {
+ if todo.Archived {
ret = append(ret, todo)
}
}
@@ -91,7 +91,7 @@ func (f *TodoFilter) getArchived() []*Todo {
func (f *TodoFilter) getUnarchived() []*Todo {
var ret []*Todo
for _, todo := range f.Todos {
- if todo.Archived == false {
+ if !todo.Archived {
ret = append(ret, todo)
}
}