Skip to content

Commit

Permalink
dont check isset, just check if not found (False) since c.Bool does t…
Browse files Browse the repository at this point in the history
…hat already
  • Loading branch information
cyberhorsey committed Jan 28, 2025
1 parent 2303592 commit 93395cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taiko-client/driver/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 93395cf

Please sign in to comment.