Handle runtime error on bad user input (#1652)
This commit is contained in:
parent
d544f7f8da
commit
4ef8a75ae2
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ func main() {
|
|||
|
||||
authCheckEnabled := os.Getenv("GITHUB_TOKEN") == "" &&
|
||||
os.Getenv("GITHUB_ENTERPRISE_TOKEN") == "" &&
|
||||
cmdutil.IsAuthCheckEnabled(cmd)
|
||||
cmd != nil && cmdutil.IsAuthCheckEnabled(cmd)
|
||||
if authCheckEnabled {
|
||||
cfg, err := cmdFactory.Config()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue