Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
anujc25 committed Jan 13, 2025
1 parent d9063fd commit bf4217d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/command/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -825,12 +825,11 @@ func NewRootCmd() (*cobra.Command, error) {
globalRootCmdLock.Lock()
defer globalRootCmdLock.Unlock()

var err error
if globalRootCmd == nil {
var err error
globalRootCmd, err = createRootCmd()
return globalRootCmd, err
}
return globalRootCmd, nil
return globalRootCmd, err
}

// Execute executes the CLI.
Expand Down

0 comments on commit bf4217d

Please sign in to comment.