Remove redundant \r\n Trim() call

This commit is contained in:
DataHoarder 2021-12-07 15:01:14 +01:00
parent 9b0e636aaa
commit d679f9a541

View file

@ -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() {