Skip to content

Conversation

@sean-mcmanus
Copy link
Contributor

@sean-mcmanus sean-mcmanus commented Jan 9, 2018

Fix install on Mac.

@sean-mcmanus sean-mcmanus requested a review from bobbrow January 9, 2018 11:20
if (p.binaries && p.binaries.length > 0 &&
p.platforms.findIndex(plat => plat === installBlob.info.platform) !== -1 &&
p.architectures.findIndex(arch => arch === installBlob.info.architecture) !== - 1) {
(p.architectures == undefined || p.architectures.findIndex(arch => arch === installBlob.info.architecture) !== - 1)) {
Copy link
Member

Choose a reason for hiding this comment

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

always use === over ==. Is there a linting rule for this?

Copy link
Member

Choose a reason for hiding this comment

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

Yep. "triple-equals": true

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So should I add triple-equal to tslint and fix all the non-triple equals (a lot)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll do that....

Copy link
Member

Choose a reason for hiding this comment

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

Talked with @sean-mcmanus, delaying the triple-equal tslint to another PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just changed this 1 instance to ===.

@bobbrow bobbrow merged commit 5885388 into master Jan 10, 2018
@sean-mcmanus sean-mcmanus deleted the users/seanmcm/fixMacInstall branch January 10, 2018 00:57
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants