From faf964fbf4429b855290fb83c393664843857ca7 Mon Sep 17 00:00:00 2001 From: arturrez Date: Thu, 5 Dec 2024 14:37:09 -0800 Subject: [PATCH] lint --- cmd/blockchaincmd/add_validator.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/blockchaincmd/add_validator.go b/cmd/blockchaincmd/add_validator.go index 11d12c2e7..cbcb64533 100644 --- a/cmd/blockchaincmd/add_validator.go +++ b/cmd/blockchaincmd/add_validator.go @@ -206,15 +206,15 @@ func addValidator(_ *cobra.Command, args []string) error { for { local := "Use my local machine to spin up an additional validator" existing := "I have an existing Avalanche node (we will require its NodeID and BLS info)" - option, err := app.Prompt.CaptureList( + if option, err := app.Prompt.CaptureList( "How would you like to set up the new validator", []string{local, existing}, - ) - if err != nil { + ); err != nil { return err + } else { + createLocalValidator = option == local + break } - createLocalValidator = option == local - break } }