Skip to content

Commit 543ce1e

Browse files
committed
fix small error
1 parent b0aa224 commit 543ce1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

os/os.module.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ func chdir(self py.Object, args py.Tuple) (py.Object, error) {
8282
if !ok {
8383
return nil, py.ExceptionNewf(py.TypeError, "str expected, not "+args[0].Type().Name)
8484
}
85-
err = os.Chdir(string(dir))
86-
err = os.Chdir(dir)
85+
err := os.Chdir(string(dir))
8786
if err != nil {
8887
return nil, py.ExceptionNewf(py.NotADirectoryError, "Couldn't change cwd; "+err.Error())
8988
}

0 commit comments

Comments
 (0)