From d8ac2f0b2d59ea08471b21d5b2d3b00eda4c2cfe Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Sun, 12 Mar 2017 14:11:00 +0000 Subject: [PATCH] Review feedback: close file immediately. --- analysis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analysis.go b/analysis.go index 9a071c91f5..9e296c3321 100644 --- a/analysis.go +++ b/analysis.go @@ -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