Skip to content

Commit a57277e

Browse files
committed
cmd/evm: fix some linter error
1 parent 57eef63 commit a57277e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

cmd/evm/disasm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ func disasmCmd(ctx *cli.Context) error {
4545
}
4646

4747
code := strings.TrimSpace(string(in[:]))
48-
fmt.Fprintf(ctx.App.Writer,"%v\n", code)
48+
fmt.Fprintf(ctx.App.Writer, "%v\n", code)
4949
return asm.PrintDisassembled(code)
5050
}

cmd/evm/runner.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ func runCmd(ctx *cli.Context) error {
128128
if ctx.GlobalString(CodeFileFlag.Name) == "-" {
129129
//Try reading from stdin
130130
if hexcode, err = ioutil.ReadAll(os.Stdin); err != nil {
131-
fmt.Fprintf(ctx.App.ErrWriter,"Could not load code from stdin: %v\n", err)
131+
fmt.Fprintf(ctx.App.ErrWriter, "Could not load code from stdin: %v\n", err)
132132
os.Exit(1)
133133
}
134134
} else {
135135
// Codefile with hex assembly
136136
if hexcode, err = ioutil.ReadFile(ctx.GlobalString(CodeFileFlag.Name)); err != nil {
137-
fmt.Fprintf(ctx.App.ErrWriter,"Could not load code from file: %v\n", err)
137+
fmt.Fprintf(ctx.App.ErrWriter, "Could not load code from file: %v\n", err)
138138
os.Exit(1)
139139
}
140140
}
@@ -172,11 +172,11 @@ func runCmd(ctx *cli.Context) error {
172172
if cpuProfilePath := ctx.GlobalString(CPUProfileFlag.Name); cpuProfilePath != "" {
173173
f, err := os.Create(cpuProfilePath)
174174
if err != nil {
175-
fmt.Fprintf(ctx.App.ErrWriter,"could not create CPU profile: %v\n", err)
175+
fmt.Fprintf(ctx.App.ErrWriter, "could not create CPU profile: %v\n", err)
176176
os.Exit(1)
177177
}
178178
if err := pprof.StartCPUProfile(f); err != nil {
179-
fmt.Fprintf(ctx.App.ErrWriter,"could not start CPU profile: %v\n", err)
179+
fmt.Fprintf(ctx.App.ErrWriter, "could not start CPU profile: %v\n", err)
180180
os.Exit(1)
181181
}
182182
defer pprof.StopCPUProfile()
@@ -206,11 +206,11 @@ func runCmd(ctx *cli.Context) error {
206206
if memProfilePath := ctx.GlobalString(MemProfileFlag.Name); memProfilePath != "" {
207207
f, err := os.Create(memProfilePath)
208208
if err != nil {
209-
fmt.Fprintln(ctx.App.ErrWriter,"could not create memory profile: %v\n", err)
209+
fmt.Fprintf(ctx.App.ErrWriter, "could not create memory profile: %v\n", err)
210210
os.Exit(1)
211211
}
212212
if err := pprof.WriteHeapProfile(f); err != nil {
213-
fmt.Fprintln(ctx.App.ErrWriter,"could not create memory profile: %v\n", err)
213+
fmt.Fprintf(ctx.App.ErrWriter, "could not create memory profile: %v\n", err)
214214
os.Exit(1)
215215
}
216216
f.Close()

0 commit comments

Comments
 (0)