-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
chore: use toUpperCase in detectOS
#7241
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
Conversation
Signed-off-by: CodingRule <ioumih32@gmail.com>
|
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 <ioumih32@gmail.com>
Signed-off-by: CodingRule <ioumih32@gmail.com>
|
@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 detectOStoUpperCase in detectOS
avivkeller
left a comment
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 <redyetidev@gmail.com> Signed-off-by: CodingRule <ioumih32@gmail.com>
|
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 <ioumih32@gmail.com> * Update detectOS.ts Signed-off-by: CodingRule <ioumih32@gmail.com> * Update detectOS.ts Signed-off-by: CodingRule <ioumih32@gmail.com> * Update apps/site/util/detectOS.ts Co-authored-by: Aviv Keller <redyetidev@gmail.com> Signed-off-by: CodingRule <ioumih32@gmail.com> --------- Signed-off-by: CodingRule <ioumih32@gmail.com> Co-authored-by: Aviv Keller <redyetidev@gmail.com>
Instead of using the switch statement, we use a faster way with an object. Hope it's not useless tho.