mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
cmd/evm: fix some linter error
This commit is contained in:
parent
57eef63478
commit
a57277e9a7
2 changed files with 7 additions and 7 deletions
|
|
@ -206,11 +206,11 @@ func runCmd(ctx *cli.Context) error {
|
|||
if memProfilePath := ctx.GlobalString(MemProfileFlag.Name); memProfilePath != "" {
|
||||
f, err := os.Create(memProfilePath)
|
||||
if err != nil {
|
||||
fmt.Fprintln(ctx.App.ErrWriter,"could not create memory profile: %v\n", err)
|
||||
fmt.Fprintf(ctx.App.ErrWriter, "could not create memory profile: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
if err := pprof.WriteHeapProfile(f); err != nil {
|
||||
fmt.Fprintln(ctx.App.ErrWriter,"could not create memory profile: %v\n", err)
|
||||
fmt.Fprintf(ctx.App.ErrWriter, "could not create memory profile: %v\n", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
f.Close()
|
||||
|
|
|
|||
Loading…
Reference in a new issue