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

Update index.ts #534

Merged
merged 2 commits into from
Oct 9, 2018
Merged

Update index.ts #534

merged 2 commits into from
Oct 9, 2018

Conversation

StephenWeatherford
Copy link
Contributor

No description provided.

@StephenWeatherford StephenWeatherford requested a review from a team October 9, 2018 19:11
@StephenWeatherford StephenWeatherford changed the title Remove unused imports Update index.ts Oct 9, 2018
if (!isNaN(parseInt(value))) {
value = parseInt(value);
let value: string | number = environmentVariables[envVar];
if (typeof value === 'string' && !isNaN(parseInt(value, undefined))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can process.env[envVar] be infinity? isNaN doesn't seem to cover infinity AFAIK.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

parseInt doesn't seem to be able to return Infinity

@StephenWeatherford StephenWeatherford merged commit 2b166c7 into master Oct 9, 2018
@StephenWeatherford StephenWeatherford deleted the saw/remote-imports branch October 9, 2018 20:49
@microsoft microsoft locked and limited conversation to collaborators Oct 27, 2021
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.

2 participants