remove redundant file Close

Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
allencloud 2016-11-18 17:50:02 +08:00
parent c6d69ea9e9
commit 3dca62cfb1

View file

@ -84,7 +84,6 @@ func InstallDefault(name string) error {
defer os.Remove(profilePath)
if err := p.generateDefault(f); err != nil {
f.Close()
return err
}