-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add Google Cloud env vars to ci_providers check #4191
Conversation
jennifer-shehane
commented
May 14, 2019
- close Support Google Cloud Build details in Cypress Dashboard #3582
@@ -468,7 +493,7 @@ const commitDefaults = function (existingInfo) { | |||
// defaulting back to null if all fails | |||
// NOTE: only properties defined in "existingInfo" will be returned | |||
const combined = _.transform(existingInfo, (memo, value, key) => { | |||
return memo[key] = _.defaultTo(value != null ? value : commitParamsObj[key], null) | |||
return memo[key] = _.defaultTo(value || commitParamsObj[key], null) |
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.
hmm, changing the logic here, right? because now it treats empty strings and undefined values differently. But I don't see any changed unit tests
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.
This is a decaffeinate fix, just a shorter null check. It should be equivalent since the original was an existential coffeescript check, but also, they always say "may not be equivalent", so yah I will add a unit test.
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.
ok
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.
nice! Now just need concourseCI and we will be unstoppable