]> Cypherpunks.ru repositories - goredo.git/blobdiff - run.go
Do not shadow variables
[goredo.git] / run.go
diff --git a/run.go b/run.go
index 38bfc13562b72d162791ae683f8db45e50a49703..0b935c55ac228f1129c13dca4515614d513c072f 100644 (file)
--- a/run.go
+++ b/run.go
@@ -796,8 +796,8 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error {
                fdDepOpened = false
 
                // Post-commit .rec sanitizing
-               if depInfo, err := depRead(tgt); err == nil {
-                       ifchangeSeen := make(map[string]struct{}, len(depInfo.ifchanges))
+               dep, err = depRead(tgt)
+               if err == nil {
                        ifchangeSeen := make(map[string]struct{}, len(dep.ifchanges))
                        for _, ifchange := range dep.ifchanges {
                                ifchangeSeen[ifchange.tgt.a] = struct{}{}