From 93395cf2526a51b18d106a4dfd9d6e29c20239bc Mon Sep 17 00:00:00 2001 From: Jeffery Walsh Date: Tue, 28 Jan 2025 11:30:04 -0800 Subject: [PATCH] dont check isset, just check if not found (False) since c.Bool does that already --- packages/taiko-client/driver/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/taiko-client/driver/config.go b/packages/taiko-client/driver/config.go index 1f62822bc2..55c04e64a1 100644 --- a/packages/taiko-client/driver/config.go +++ b/packages/taiko-client/driver/config.go @@ -108,7 +108,7 @@ func NewConfigFromCliContext(c *cli.Context) (*Config, error) { signerConfigs p2p.SignerSetup ) - if c.IsSet(p2pFlags.DisableP2PName) && !c.Bool(p2pFlags.DisableP2PName) { + if !c.Bool(p2pFlags.DisableP2PName) { log.Info("p2pFlag enabled", "p2pFlag", c.Bool(p2pFlags.DisableP2PName)) // Create a new RPC client to get the chain IDs. rpc, err := rpc.NewClient(context.Background(), clientConfig)