mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 09:59:13 +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 {
|
func writeHeapProfileToFile() error {
|
||||||
mprof, err := os.Create(heapProfile)
|
mprof, err := os.Create(heapProfile)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
return err
|
||||||
}
|
}
|
||||||
defer mprof.Close()
|
defer mprof.Close()
|
||||||
return pprof.WriteHeapProfile(mprof)
|
return pprof.WriteHeapProfile(mprof)
|
||||||
|
Reference in New Issue
Block a user