Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Remove unnecessary UnreadRune call. #2

Merged
merged 1 commit into from
Nov 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove unnecessary UnreadRune call.
  • Loading branch information
cofyc committed Nov 6, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit cd58629724161a945cb5576728135e85d9906263
1 change: 0 additions & 1 deletion shlex.go
Original file line number Diff line number Diff line change
@@ -253,7 +253,6 @@ func (t *Tokenizer) scanStream() (*Token, error) {
}
case spaceRuneClass:
{
t.input.UnreadRune()
token := &Token{
tokenType: tokenType,
value: string(value)}