Skip to content

Commit 190df78

Browse files
committed
cmd: fix staticcheck QF1012
1 parent 447b5f7 commit 190df78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/geth/consolecmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func remoteConsole(ctx *cli.Context) error {
152152
func ephemeralConsole(ctx *cli.Context) error {
153153
var b strings.Builder
154154
for _, file := range ctx.Args().Slice() {
155-
b.WriteString(fmt.Sprintf("loadScript('%s');", file))
155+
fmt.Fprintf(&b, "loadScript('%s');", file)
156156
}
157157
utils.Fatalf(`The "js" command is deprecated. Please use the following instead:
158158
geth --exec "%s" console`, b.String())

0 commit comments

Comments
 (0)