From dc880198e5ee70d34c6fbb1cecc19569fd99d70f Mon Sep 17 00:00:00 2001 From: Doryu Date: Mon, 3 Nov 2025 21:00:07 +0100 Subject: [PATCH] Update main.go --- cmd/clef/main.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/clef/main.go b/cmd/clef/main.go index dde4ae853f..666d6d96dd 100644 --- a/cmd/clef/main.go +++ b/cmd/clef/main.go @@ -889,17 +889,14 @@ func confirm(text string) bool { if err != nil { log.Crit("Failed to read user input", "err", err) } - if text := strings.TrimSpace(text); text == "ok" { - return true - } - return false + return strings.TrimSpace(text) == "ok" } func testExternalUI(api *core.SignerAPI) { ctx := context.WithValue(context.Background(), "remote", "clef binary") ctx = context.WithValue(ctx, "scheme", "in-proc") ctx = context.WithValue(ctx, "local", "main") - errs := make([]string, 0) + var errs []string a := common.HexToAddress("0xdeadbeef000000000000000000000000deadbeef") addErr := func(errStr string) {