diff --git a/SynchRoGazer.go b/SynchRoGazer.go index e3933f9..aa46d20 100644 --- a/SynchRoGazer.go +++ b/SynchRoGazer.go @@ -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() {