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: validation of input parameters #109

Merged
merged 1 commit into from
Feb 13, 2022
Merged

fix: validation of input parameters #109

merged 1 commit into from
Feb 13, 2022

Conversation

mxschmitt
Copy link
Owner

@mxschmitt mxschmitt commented Feb 13, 2022

Fixes #108

for (const opt in options) {
const value = getValidatedInput(opt, options[opt]);
for (const [key, option] of Object.entries(options)) {
if (core.getInput(key) === '')
Copy link
Owner Author

Choose a reason for hiding this comment

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

Suggested change
if (core.getInput(key) === '')
if (core.getInput(key) === '')

note: it always returns a string, so we should be good with checking for an empty string.

@dscho dscho merged commit 8b4e4ac into master Feb 13, 2022
@dscho dscho deleted the fix-validation branch February 13, 2022 15:53
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.

Error: Invalid value for 'tmate-server-host': ''
2 participants