aboutsummaryrefslogtreecommitdiff
path: root/lib/bytes/bytes.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-11-29 21:00:39 +0700
committerShulhan <ms@kilabit.info>2018-11-29 21:15:21 +0700
commit1708e31a27dc060cc6aa4a57932406ab38f76e60 (patch)
tree86862ae819ec28bd6ddbad21c42ba9f58e9ca0dc /lib/bytes/bytes.go
parent5b502bae6022b12a500cca1d6d842235aeff730f (diff)
downloadpakakeh.go-1708e31a27dc060cc6aa4a57932406ab38f76e60.tar.xz
all: fix warnings from linters
Diffstat (limited to 'lib/bytes/bytes.go')
-rw-r--r--lib/bytes/bytes.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bytes/bytes.go b/lib/bytes/bytes.go
index 39799c95..bcb98447 100644
--- a/lib/bytes/bytes.go
+++ b/lib/bytes/bytes.go
@@ -336,7 +336,7 @@ func SkipAfterToken(line, token []byte, startAt int, checkEsc bool) (int, bool)
}
// We found the token at `p`
- p = p + len(token)
+ p += len(token)
return p, true
}
@@ -351,7 +351,7 @@ func ToLower(data *[]byte) {
if (*data)[x] < 'A' || (*data)[x] > 'Z' {
continue
}
- (*data)[x] = (*data)[x] + 32
+ (*data)[x] += 32
}
}
@@ -363,7 +363,7 @@ func ToUpper(data *[]byte) {
if (*data)[x] < 'a' || (*data)[x] > 'z' {
continue
}
- (*data)[x] = (*data)[x] - 32
+ (*data)[x] -= 32
}
}