Skip to content

Conversation

@CodingRule
Copy link
Contributor

Instead of using the switch statement, we use a faster way with an object. Hope it's not useless tho.

Signed-off-by: CodingRule <ioumih32@gmail.com>
@CodingRule CodingRule requested a review from a team as a code owner November 19, 2024 12:32
@vercel
Copy link

vercel bot commented Nov 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Nov 19, 2024 2:07pm

@CodingRule
Copy link
Contributor Author

Also I can change it at utils/getNodeDownloadUrl.ts too

Signed-off-by: CodingRule <ioumih32@gmail.com>
Signed-off-by: CodingRule <ioumih32@gmail.com>
@CodingRule
Copy link
Contributor Author

@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.

@avivkeller avivkeller changed the title Update detectOS.ts chore: to toUpperCase in detectOS Nov 19, 2024
@avivkeller avivkeller changed the title chore: to toUpperCase in detectOS chore: use toUpperCase in detectOS Nov 19, 2024
Copy link
Member

@avivkeller avivkeller left a 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>
@CodingRule
Copy link
Contributor Author

Haha thanks! I saw that one coming tbh (=

@CodingRule
Copy link
Contributor Author

See my one comment, then LGTM

thanks good sir!

@CodingRule
Copy link
Contributor Author

also quick question @redyetidev would I be able to apply the same logic here too?

utils/getNodeDownloadUrl.ts too

@avivkeller
Copy link
Member

In a seperate PR, preferably

@CodingRule
Copy link
Contributor Author

yes ofc

@github-actions
Copy link
Contributor

github-actions bot commented Nov 19, 2024

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 94 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/about/previous-releases 🟢 100 🟢 100 🟢 100 🟢 92 🔗
/en/download 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 100 🟢 100 🟢 96 🟢 92 🔗

@avivkeller avivkeller enabled auto-merge November 19, 2024 14:13
@github-actions
Copy link
Contributor

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 92%
90.73% (627/691) 72.44% (184/254) 94.48% (120/127)

Unit Test Report

Tests Skipped Failures Errors Time
137 0 💤 0 ❌ 0 🔥 5.5s ⏱️

@avivkeller avivkeller added this pull request to the merge queue Nov 19, 2024
@avivkeller
Copy link
Member

Thanks for your contribution, @CodingRule! It's be merged shortly.

Merged via the queue into nodejs:main with commit 52e04b0 Nov 19, 2024
14 of 15 checks passed
@CodingRule
Copy link
Contributor Author

Ty!

bmuenzenmeyer pushed a commit that referenced this pull request Nov 21, 2024
* 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>
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