-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix install on Mac. #1425
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 install on Mac. #1425
Conversation
Extension/src/main.ts
Outdated
| 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)) { |
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.
always use === over ==. Is there a linting rule for this?
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.
Yep. "triple-equals": true
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.
So should I add triple-equal to tslint and fix all the non-triple equals (a lot)?
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.
I'll do that....
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.
Talked with @sean-mcmanus, delaying the triple-equal tslint to another PR.
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.
I just changed this 1 instance to ===.
Fix install on Mac.