summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-07-19 06:22:35 +0200
committerJunegunn Choi <junegunn.c@gmail.com>2019-07-19 13:22:35 +0900
commita1260feeed0cc565dfe3cca9927e1f21af7c80ef (patch)
tree86d3d6b279b5f8a2174cfb55bf895482780cc5a1 /src/util
parent7322504ad07297bf44b6a7e2b8ac7a363928e6d7 (diff)
Code cleanup (#1640)
- Replaced time.Now().Sub() with time.Since() - Replaced unnecessary string/byte slice conversions - Removed obsolete return and value assignment in range loop
Diffstat (limited to 'src/util')
-rw-r--r--src/util/chars.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/util/chars.go b/src/util/chars.go
index 04a66d7d..e36ab769 100644
--- a/src/util/chars.go
+++ b/src/util/chars.go
@@ -169,7 +169,6 @@ func (chars *Chars) CopyRunes(dest []rune) {
for idx, b := range chars.slice[:len(dest)] {
dest[idx] = rune(b)
}
- return
}
func (chars *Chars) Prepend(prefix string) {