Commit c0b62980 authored by Kevin Atkinson's avatar Kevin Atkinson

convert: close the directory explicitly, don't use defer

parent 4aacd55a
......@@ -117,9 +117,9 @@ func Move(oldPath string, newPath string, out io.Writer) error {
if err != nil {
return err
}
defer indir.Close()
names, err := indir.Readdirnames(-1)
indir.Close()
if err != nil {
return err
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment