diff options
| author | Grant Ammons <grant@pipelinedealsco.com> | 2017-01-16 14:56:38 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-16 14:56:38 -0500 |
| commit | 976e6f28c016752745a0dc3365ccc09ac03daf78 (patch) | |
| tree | 4f717fe9f3800fc095c32cca154e1c3d69e8eb5a /todolist/parser.go | |
| parent | 3813ef4378d25ade98a693bf3eef959754e8af20 (diff) | |
| parent | 32af022cc4b6d7a2b1bf1fc2bb49bb6b84992187 (diff) | |
Merge pull request #15 from whoshuu/master
Run gofmt on formatter and parser
Diffstat (limited to 'todolist/parser.go')
| -rw-r--r-- | todolist/parser.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
