Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

adrianriobo
Copy link
Collaborator

Fix #257

return args.Token
return util.If(args != nil,
args.Token,
"")
Copy link
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
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
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
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
4 checks passed
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