diff options
| author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-07-19 06:22:35 +0200 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2019-07-19 13:22:35 +0900 |
| commit | a1260feeed0cc565dfe3cca9927e1f21af7c80ef (patch) | |
| tree | 86d3d6b279b5f8a2174cfb55bf895482780cc5a1 /src/tokenizer.go | |
| parent | 7322504ad07297bf44b6a7e2b8ac7a363928e6d7 (diff) | |
| download | fzf-a1260feeed0cc565dfe3cca9927e1f21af7c80ef.tar.gz | |
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/tokenizer.go')
| -rw-r--r-- | src/tokenizer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenizer.go b/src/tokenizer.go index 208d79e9..6485dedc 100644 --- a/src/tokenizer.go +++ b/src/tokenizer.go @@ -238,7 +238,7 @@ func Transform(tokens []Token, withNth []Range) []Token { for _, part := range parts { output.WriteString(part.ToString()) } - merged = util.ToChars([]byte(output.String())) + merged = util.ToChars(output.Bytes()) } var prefixLength int32 |
