Browse code

remove redundant file Close

Signed-off-by: allencloud <allen.sun@daocloud.io>

allencloud authored on 2016/11/18 18:50:02
Showing 1 changed files
... ...
@@ -84,7 +84,6 @@ func InstallDefault(name string) error {
84 84
 	defer os.Remove(profilePath)
85 85
 
86 86
 	if err := p.generateDefault(f); err != nil {
87
-		f.Close()
88 87
 		return err
89 88
 	}
90 89