Skip to content

fix(chore): Minor refactor#366

Merged
joaomoreno merged 1 commit intomicrosoft:masterfrom
jamesgeorge007:hotfix/refactor
Jun 20, 2019
Merged

fix(chore): Minor refactor#366
joaomoreno merged 1 commit intomicrosoft:masterfrom
jamesgeorge007:hotfix/refactor

Conversation

@jamesgeorge007
Copy link
Contributor

Use process.platform instead of os.platform() to maintain consistency.

use process.platform instead of os.platform()
@jamesgeorge007
Copy link
Contributor Author

@joaomoreno Makes sense 🤔

@raix
Copy link
Contributor

raix commented Jun 19, 2019

process.platform was added in v0.1.16 and os.platform() was added in v0.5.0 (later)
Is os.platform() being deprecated?
EDIT: I would expect process.platform to go at some point, I read it as part of a refactoring / restructuring in the node js api - but I could be wrong

@jamesgeorge007
Copy link
Contributor Author

@raix There is no harm in having os.platform(). But still, the refactor ensures consistency IMO.

@joaomoreno
Copy link
Member

joaomoreno commented Jun 20, 2019

Sure, why not. Thanks! 🍻

@joaomoreno joaomoreno closed this Jun 20, 2019
@joaomoreno joaomoreno merged commit 5581573 into microsoft:master Jun 20, 2019
@joaomoreno joaomoreno self-assigned this Jun 20, 2019
@joaomoreno joaomoreno added this to the June 2019 milestone Jun 20, 2019
@jamesgeorge007 jamesgeorge007 deleted the hotfix/refactor branch July 1, 2019 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants