From 4c7ec43da2b33fbaad0d61a8236570a62ab9f0a6 Mon Sep 17 00:00:00 2001 From: postmannen Date: Wed, 14 Jun 2023 06:47:13 +0200 Subject: [PATCH] removed not needed error check --- requests_copy.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/requests_copy.go b/requests_copy.go index 98fd6d6..019269b 100644 --- a/requests_copy.go +++ b/requests_copy.go @@ -456,13 +456,13 @@ func copySrcSubProcFunc(proc process, cia copyInitialData, cancel context.Cancel // suffix to the filename. file := filepath.Join(initialMessage.Directory, initialMessage.FileName) - fmt.Printf(" ** DEBUG: BEFORE STAT FILE CONTAINS: %v\n", file) // Check the file is a unix socket, and if it is we write the // data to the socket instead of writing it to a normal file. - fi, err := os.Stat(file) - if err != nil { - fmt.Printf(" ** DEBUG: STAT ERROR: %v\n", err) - } + // We don't care about the error. + fi, _ := os.Stat(file) + // if err != nil { + // fmt.Printf(" ** DEBUG: STAT ERROR: %v\n", err) + // } // We want to be able to send the reply message when the copying is done, // and also for any eventual errors within the subProcFunc. We want to