Remove redundant \r\n Trim() call
This commit is contained in:
parent
9b0e636aaa
commit
d679f9a541
|
@ -11,7 +11,6 @@ import (
|
|||
"io"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
)
|
||||
|
||||
|
@ -89,9 +88,7 @@ func main() {
|
|||
go func() {
|
||||
defer atomic.AddInt64(&taskCount, -1)
|
||||
for scanner.Scan() {
|
||||
text := scanner.Text()
|
||||
|
||||
path := strings.TrimRight(text, "\n\r")
|
||||
path := scanner.Text()
|
||||
|
||||
atomic.AddInt64(&taskCount, 1)
|
||||
go func() {
|
||||
|
|
Loading…
Reference in a new issue