From fbc9ca0ee6870d08d4153a2cdd56ebe8c66e1699 Mon Sep 17 00:00:00 2001 From: wit Date: Sat, 1 Nov 2025 12:25:23 +0800 Subject: [PATCH] cmd: fix staticcheck warings QF1012 --- cmd/geth/consolecmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/geth/consolecmd.go b/cmd/geth/consolecmd.go index bf38c86349..796d2e1e62 100644 --- a/cmd/geth/consolecmd.go +++ b/cmd/geth/consolecmd.go @@ -152,7 +152,7 @@ func remoteConsole(ctx *cli.Context) error { func ephemeralConsole(ctx *cli.Context) error { var b strings.Builder for _, file := range ctx.Args().Slice() { - b.WriteString(fmt.Sprintf("loadScript('%s');", file)) + fmt.Fprintf(&b, "loadScript('%s');", file) } utils.Fatalf(`The "js" command is deprecated. Please use the following instead: geth --exec "%s" console`, b.String())