From c3a9a943005074b4cb5307fcdc339e168e309ce8 Mon Sep 17 00:00:00 2001 From: MarkDaveny Date: Sat, 8 Mar 2025 18:23:15 +0800 Subject: [PATCH] chore: remove redundant words in comment Signed-off-by: MarkDaveny --- cmd/blockchaincmd/convert.go | 2 +- pkg/binutils/binaries.go | 2 +- pkg/localnet/output.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/blockchaincmd/convert.go b/cmd/blockchaincmd/convert.go index 085af091e..e5ccdf3e5 100644 --- a/cmd/blockchaincmd/convert.go +++ b/cmd/blockchaincmd/convert.go @@ -141,7 +141,7 @@ func StartLocalMachine( // ask user if we want to use local machine if cluster is not provided if !useLocalMachine && clusterNameFlagValue == "" { ux.Logger.PrintToUser("You can use your local machine as a bootstrap validator on the blockchain") - ux.Logger.PrintToUser("This means that you don't have to to set up a remote server on a cloud service (e.g. AWS / GCP) to be a validator on the blockchain.") + ux.Logger.PrintToUser("This means that you don't have to set up a remote server on a cloud service (e.g. AWS / GCP) to be a validator on the blockchain.") useLocalMachine, err = app.Prompt.CaptureYesNo("Do you want to use your local machine as a bootstrap validator?") if err != nil { diff --git a/pkg/binutils/binaries.go b/pkg/binutils/binaries.go index 8b48f5a52..65e8f5a25 100644 --- a/pkg/binutils/binaries.go +++ b/pkg/binutils/binaries.go @@ -86,7 +86,7 @@ func installZipArchive(zipfile []byte, binDir string) error { return fmt.Errorf("failed to create app binary directory: %w", err) } - // Closure to address file descriptors issue, uses Close to to not leave open descriptors + // Closure to address file descriptors issue, uses Close to not leave open descriptors extractAndWriteFile := func(f *zip.File) error { rc, err := f.Open() if err != nil { diff --git a/pkg/localnet/output.go b/pkg/localnet/output.go index b243d1874..e9cf9fa85 100644 --- a/pkg/localnet/output.go +++ b/pkg/localnet/output.go @@ -58,7 +58,7 @@ func PrintEndpoints( } // PrintBlockchainEndpoints prints out a table of (RPC Kind, RPC) for the given -// [blockchain] associated to the the given tmpnet [networkDir] +// [blockchain] associated to the given tmpnet [networkDir] // RPC Kind to be in [Localhost, Codespace] where the latest // is used only if inside a codespace environment func PrintBlockchainEndpoints(