remove redundant file Close

Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: 3dca62cfb1e7c6404cb4730425919f66c680b409
Component: engine
This commit is contained in:
allencloud
2016-11-18 17:50:02 +08:00
parent 2b9dc0f4a1
commit 9532520f5c
@@ -84,7 +84,6 @@ func InstallDefault(name string) error {
defer os.Remove(profilePath)
if err := p.generateDefault(f); err != nil {
f.Close()
return err
}