diff options
| author | Shulhan <ms@kilabit.info> | 2018-11-30 10:23:29 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-11-30 10:23:29 +0700 |
| commit | 645c7bb752465782a4e46b703c5250d345b495bd (patch) | |
| tree | e0099dbc8dce592b2e491c19c8ae41bfc68c6b68 /lib/bytes/bytes.go | |
| parent | b077d6796655e1be9864e0c64068bdcd5d1d2649 (diff) | |
| download | pakakeh.go-645c7bb752465782a4e46b703c5250d345b495bd.tar.xz | |
all: fix linter warnings on naked return
Diffstat (limited to 'lib/bytes/bytes.go')
| -rw-r--r-- | lib/bytes/bytes.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/bytes/bytes.go b/lib/bytes/bytes.go index bcb98447..94f529e8 100644 --- a/lib/bytes/bytes.go +++ b/lib/bytes/bytes.go @@ -393,7 +393,7 @@ func TokenFind(line, token []byte, startat int) (at int) { y++ if y == tokenlen { // we found it! - return + return at } } else { if at != -1 { @@ -407,7 +407,8 @@ func TokenFind(line, token []byte, startat int) (at int) { if y < tokenlen { at = -1 } - return + + return at } // |
