-
Notifications
You must be signed in to change notification settings - Fork 9
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
OSOE-466: Configuration option to filter tests #99
Conversation
[string]::IsNullOrEmpty($Filter) ? '' : "--filter" | ||
[string]::IsNullOrEmpty($Filter) ? '' : $Filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[string]::IsNullOrEmpty
is redundant, also the string quotes are inconsistent.
[string]::IsNullOrEmpty($Filter) ? '' : "--filter" | |
[string]::IsNullOrEmpty($Filter) ? '' : $Filter | |
$Filter ? "" : "--filter" | |
$Filter ? "" : $Filter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of them should actually be single quote (since we don't need string interpolation).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the ternary's components should be the other way around, since "truthy" implies that it's not null or empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh.
Co-authored-by: Dávid El-Saig <david.el-saig@lombiq.com>
OSOE-466