Skip to content

Commit 36b1018

Browse files
author
Drew O'Meara
committed
shadowing cleanup
1 parent bb98aa8 commit 36b1018

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

modules/runtime.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ func (ctx *ctx) ResolveAndCompile(pathname string, opts py.CompileOpts) (py.Comp
134134
}
135135
out.SrcPathname = fpath
136136
case ".pyc":
137-
var file *os.File
138-
file, err = os.Open(fpath)
137+
file, err := os.Open(fpath)
139138
if err != nil {
140139
return false, py.ExceptionNewf(py.OSError, "Error opening %q: %w", fpath, err)
141140
}
@@ -171,8 +170,8 @@ func resolveRunPath(runPath string, opts py.CompileOpts, pathObjs []py.Object, t
171170
runPath = strings.TrimSuffix(runPath, "/")
172171

173172
var (
174-
err error
175-
cwd string
173+
err error
174+
cwd string
176175
cont = true
177176
)
178177

0 commit comments

Comments
 (0)