cmd/evm: fix some linter error

This commit is contained in:
terasum 2018-07-31 11:30:13 +08:00
parent 57eef63478
commit a57277e9a7
2 changed files with 7 additions and 7 deletions

View file

@ -206,11 +206,11 @@ func runCmd(ctx *cli.Context) error {
if memProfilePath := ctx.GlobalString(MemProfileFlag.Name); memProfilePath != "" { if memProfilePath := ctx.GlobalString(MemProfileFlag.Name); memProfilePath != "" {
f, err := os.Create(memProfilePath) f, err := os.Create(memProfilePath)
if err != nil { 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) os.Exit(1)
} }
if err := pprof.WriteHeapProfile(f); err != nil { 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) os.Exit(1)
} }
f.Close() f.Close()