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:

committed by
Juan Batiz-Benet

parent
9268bdd56e
commit
d72af9c910
@ -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)
|
||||
|
Reference in New Issue
Block a user