1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 08:47:42 +08:00

refactor(ipfs2/main) return err

This commit is contained in:
Brian Tiger Chow
2014-11-10 23:09:33 -08:00
committed by Juan Batiz-Benet
parent 9268bdd56e
commit d72af9c910

View File

@ -269,7 +269,7 @@ func getConfig(path string) (*config.Config, error) {
func writeHeapProfileToFile() error {
mprof, err := os.Create(heapProfile)
if err != nil {
log.Fatal(err)
return err
}
defer mprof.Close()
return pprof.WriteHeapProfile(mprof)