cmd: fix lint error mirror (#1575)

This commit is contained in:
wit liu 2025-10-08 12:25:59 +08:00 committed by GitHub
parent f709ef2edb
commit 11e82672fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -167,10 +167,10 @@ func remoteConsole(ctx *cli.Context) error {
func ephemeralConsole(ctx *cli.Context) error {
var b strings.Builder
for _, file := range ctx.Args().Slice() {
b.Write([]byte(fmt.Sprintf("loadScript('%s');", file)))
b.WriteString(fmt.Sprintf("loadScript('%s');", file))
}
utils.Fatalf(`The "js" command is deprecated. Please use the following instead:
geth --exec "%s" console`, b.String())
XDC --exec "%s" console`, b.String())
return nil
}