1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

removed not needed error check

This commit is contained in:
postmannen 2023-06-14 06:47:13 +02:00
parent f23fa053f6
commit 4c7ec43da2

View file

@ -456,13 +456,13 @@ func copySrcSubProcFunc(proc process, cia copyInitialData, cancel context.Cancel
// suffix to the filename. // suffix to the filename.
file := filepath.Join(initialMessage.Directory, initialMessage.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 // 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. // data to the socket instead of writing it to a normal file.
fi, err := os.Stat(file) // We don't care about the error.
if err != nil { fi, _ := os.Stat(file)
fmt.Printf(" ** DEBUG: STAT ERROR: %v\n", err) // 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, // 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 // and also for any eventual errors within the subProcFunc. We want to