Skip to content

fix: check gh runner args as nil in case not initialized#258

Merged
adrianriobo merged 1 commit into
redhat-developer:mainfrom
adrianriobo:fix-257
Jul 18, 2024
Merged

fix: check gh runner args as nil in case not initialized#258
adrianriobo merged 1 commit into
redhat-developer:mainfrom
adrianriobo:fix-257

Conversation

@adrianriobo
Copy link
Copy Markdown
Collaborator

Fix #257

Comment thread pkg/util/ghactions/runner.go
Comment thread pkg/util/ghactions/runner.go Outdated
return args.Token
return util.If(args != nil,
args.Token,
"")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this also needs to be using if (args != nil) ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah will update shortly, thx for catching it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well..actually created a new ternary op supporting nillable cases

…developer#257

Signed-off-by: Adrian Riobo Lorenzo <ariobolo@redhat.com>
@adrianriobo adrianriobo merged commit f5f7c72 into redhat-developer:main Jul 18, 2024
@adrianriobo adrianriobo deleted the fix-257 branch March 24, 2025 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gh runner args not initialized return panic error

2 participants