From 32af022cc4b6d7a2b1bf1fc2bb49bb6b84992187 Mon Sep 17 00:00:00 2001 From: Huu Nguyen Date: Sat, 14 Jan 2017 22:04:47 -0800 Subject: Run gofmt on formatter and parser --- todolist/parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'todolist/parser.go') diff --git a/todolist/parser.go b/todolist/parser.go index 433cfc6..c52f131 100644 --- a/todolist/parser.go +++ b/todolist/parser.go @@ -57,7 +57,7 @@ func (p *Parser) Due(input string, day time.Time) string { r, _ := regexp.Compile(`due .*$`) res := r.FindString(input) - res = res[4:len(res)] + res = res[4:] switch res { case "none": return "" @@ -163,7 +163,7 @@ func (p *Parser) matchWords(input string, r *regexp.Regexp) []string { ret := []string{} for _, val := range results { - ret = append(ret, val[1:len(val)]) + ret = append(ret, val[1:]) } return ret } -- cgit v1.3