Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

speed up custom system checkings #2

Closed
wants to merge 1 commit into from

Conversation

fscherwi
Copy link

No description provided.

@sindresorhus
Copy link
Owner

Sorry, but I think you're mistaken about what "speed up" actually means. This just changes the code style.

@fscherwi
Copy link
Author

No, for example if the process.platform=='darwin', it is also checking if process.platform=='linux'!
But that is unnecessary, because if its darwin it can't be linux!

@sindresorhus
Copy link
Owner

It does not, because it returns.

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