From 3e20a3b9244aa003fcaf26a625ef48246aef55f7 Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Mon, 11 Jun 2018 12:02:50 +1000 Subject: appease the linting gods --- parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'parser.go') diff --git a/parser.go b/parser.go index fbdf8ec..f008d33 100644 --- a/parser.go +++ b/parser.go @@ -179,12 +179,12 @@ func parseMatcher(matcher string) (alphabet string, ranges [][]rune) { } i += 3 // we just consumed 3 bytes: range start, hyphen, and range end continue - }else if i+1 < len(runes) && runes[i] == '\\' { + } else if i+1 < len(runes) && runes[i] == '\\' { alphabet += string(runes[i+1]) i += 2 // we just consumed 2 bytes: escape and the char } else { alphabet += string(runes[i]) - i +=1 + i++ } } -- cgit v1.2.3