From d679f9a5411e4e9de7313ae045fec4c58988efc2 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder <57538841+WeebDataHoarder@users.noreply.github.com> Date: Tue, 7 Dec 2021 15:01:14 +0100 Subject: [PATCH] Remove redundant \r\n Trim() call --- SynchRoGazer.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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() {