aboutsummaryrefslogtreecommitdiff
path: root/lib/bytes/bytes.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-11-30 10:23:29 +0700
committerShulhan <ms@kilabit.info>2018-11-30 10:23:29 +0700
commit645c7bb752465782a4e46b703c5250d345b495bd (patch)
treee0099dbc8dce592b2e491c19c8ae41bfc68c6b68 /lib/bytes/bytes.go
parentb077d6796655e1be9864e0c64068bdcd5d1d2649 (diff)
downloadpakakeh.go-645c7bb752465782a4e46b703c5250d345b495bd.tar.xz
all: fix linter warnings on naked return
Diffstat (limited to 'lib/bytes/bytes.go')
-rw-r--r--lib/bytes/bytes.go5
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
}
//