Skip to content
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

Remove several redundant number -> string -> number conversions #2856

Merged
merged 3 commits into from
Jun 19, 2023

Conversation

qwerty541
Copy link
Collaborator

No description provided.

@qwerty541 qwerty541 requested a review from rickstaa June 19, 2023 04:17
@vercel
Copy link

vercel bot commented Jun 19, 2023

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

Name Status Preview Updated (UTC)
github-readme-stats ✅ Ready (Inspect) Visit Preview Jun 19, 2023 10:43am

@github-actions github-actions bot added the lang-card Issues related to the language card. label Jun 19, 2023
@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9a1cbaf) 97.71% compared to head (c53306d) 97.71%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2856   +/-   ##
=======================================
  Coverage   97.71%   97.71%           
=======================================
  Files          24       24           
  Lines        5076     5076           
  Branches      451      451           
=======================================
  Hits         4960     4960           
  Misses        115      115           
  Partials        1        1           
Impacted Files Coverage Δ
src/cards/top-languages-card.js 100.00% <100.00%> (ø)
src/cards/wakatime-card.js 99.48% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@qwerty541 qwerty541 marked this pull request as draft June 19, 2023 04:20
@qwerty541 qwerty541 marked this pull request as ready for review June 19, 2023 04:21
@github-actions github-actions bot added the wakatime-card Issues related to the wakatime card. label Jun 19, 2023
@@ -204,7 +204,7 @@ const renderWakatimeCard = (stats = {}, options = { hide: [] }) => {

const lheight = parseInt(String(line_height), 10);

const langsCount = clampValue(parseInt(String(langs_count)), 1, langs_count);
const langsCount = clampValue(langs_count, 1, langs_count);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@qwerty541, good catch. Here I found another one 👍🏻.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍

Copy link
Collaborator

@rickstaa rickstaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge.

@qwerty541 qwerty541 changed the title Top langs card: remove redundant number -> string -> number conversion Remove several redundant number -> string -> number conversions Jun 19, 2023
@qwerty541 qwerty541 merged commit 62080c0 into master Jun 19, 2023
@qwerty541 qwerty541 deleted the top_langs_card_remove_redundant_conversion branch June 19, 2023 10:45
HackingGate pushed a commit to HackingGate/github-readme-stats that referenced this pull request Jun 25, 2023
…aghazra#2856)

* Top langs card: remove redundant number -> string -> number conversion

* refactor(waka): remove redundant praseInt

---------

Co-authored-by: rickstaa <[email protected]>
devantler pushed a commit to devantler/github-readme-stats that referenced this pull request Sep 24, 2023
…aghazra#2856)

* Top langs card: remove redundant number -> string -> number conversion

* refactor(waka): remove redundant praseInt

---------

Co-authored-by: rickstaa <[email protected]>
setdebarr pushed a commit to setdebarr/github-readme-stats that referenced this pull request Jan 12, 2024
…aghazra#2856)

* Top langs card: remove redundant number -> string -> number conversion

* refactor(waka): remove redundant praseInt

---------

Co-authored-by: rickstaa <[email protected]>
jacobbexten pushed a commit to jacobbexten/github-readme-stats that referenced this pull request Nov 6, 2024
…aghazra#2856)

* Top langs card: remove redundant number -> string -> number conversion

* refactor(waka): remove redundant praseInt

---------

Co-authored-by: rickstaa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-card Issues related to the language card. wakatime-card Issues related to the wakatime card.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants