Skip to content

Commit

Permalink
Review feedback: close file immediately.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilkie committed Mar 12, 2017
1 parent dfef622 commit d8ac2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func ListPackages(fileRoot, importRoot string) (PackageTree, error) {
}
return err
}
defer f.Close()
f.Close()

// Compute the import path. Run the result through ToSlash(), so that
// windows file paths are normalized to slashes, as is expected of
Expand Down

0 comments on commit d8ac2f0

Please sign in to comment.