]> Cypherpunks.ru repositories - goredo.git/commitdiff
Remove closing of already closed file
authorSergey Matveev <stargrave@stargrave.org>
Thu, 28 Jan 2021 17:55:07 +0000 (20:55 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 29 Jan 2021 08:06:07 +0000 (11:06 +0300)
run.go

diff --git a/run.go b/run.go
index 2fed7cf10824b9ae19912c0b3bb5e56929b7dbf4..f6a9042d192dd9316239c99660b3db42a0b61f6d 100644 (file)
--- a/run.go
+++ b/run.go
@@ -473,7 +473,6 @@ func runScript(tgtOrig string, errs chan error, traced bool) error {
                                if err == nil && !inode.Equals(inodePrev) {
                                        runErr.Err = errors.New("$1 was explicitly touched")
                                        errs <- runErr
-                                       fd.Close()
                                        return
                                }
                        }