-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
chore: use toUpperCase
in detectOS
#7241
Conversation
Signed-off-by: CodingRule <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Also I can change it at utils/getNodeDownloadUrl.ts too |
Signed-off-by: CodingRule <[email protected]>
Signed-off-by: CodingRule <[email protected]>
@RedYetiDev Done Thanks for pointing out to me that I can directly do it with uppercase and I have updated it in your sayings. Thanks! Hope this contribution will help. |
toUpperCase
in detectOS
toUpperCase
in detectOS
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.
See my one comment, then LGTM
Co-authored-by: Aviv Keller <[email protected]> Signed-off-by: CodingRule <[email protected]>
Haha thanks! I saw that one coming tbh (= |
thanks good sir! |
also quick question @RedYetiDev would I be able to apply the same logic here too? utils/getNodeDownloadUrl.ts too |
In a seperate PR, preferably |
yes ofc |
Lighthouse Results
|
Thanks for your contribution, @CodingRule! It's be merged shortly. |
Ty! |
* Update detectOS.ts Signed-off-by: CodingRule <[email protected]> * Update detectOS.ts Signed-off-by: CodingRule <[email protected]> * Update detectOS.ts Signed-off-by: CodingRule <[email protected]> * Update apps/site/util/detectOS.ts Co-authored-by: Aviv Keller <[email protected]> Signed-off-by: CodingRule <[email protected]> --------- Signed-off-by: CodingRule <[email protected]> Co-authored-by: Aviv Keller <[email protected]>
Instead of using the switch statement, we use a faster way with an object. Hope it's not useless tho.