From 4f1f57b1ba488cbdfdc54da9abfe2ae559924aea Mon Sep 17 00:00:00 2001 From: Travis Date: Thu, 15 Feb 2024 12:04:19 +0800 Subject: [PATCH] remove unnecessary trailing newline character when stdout is enabled --- src/croc/croc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index e1704b4..61262c7 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -1044,7 +1044,7 @@ func (c *Client) transfer() (err error) { if err = os.Remove(pathToFile); err != nil { log.Warnf("error removing %s: %v", pathToFile, err) } - fmt.Print("\n") + fmt.Fprint(os.Stderr, "\n") } if err != nil && strings.Contains(err.Error(), "pake not successful") { log.Debugf("pake error: %s", err.Error())