-
-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportPatch coverage:
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
☔ View full report in Codecov by Sentry. |
@@ -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); |
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.
@qwerty541, good catch. Here I found another one 👍🏻.
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.
Good job 👍
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.
Feel free to merge.
…move_redundant_conversion
…aghazra#2856) * Top langs card: remove redundant number -> string -> number conversion * refactor(waka): remove redundant praseInt --------- Co-authored-by: rickstaa <[email protected]>
…aghazra#2856) * Top langs card: remove redundant number -> string -> number conversion * refactor(waka): remove redundant praseInt --------- Co-authored-by: rickstaa <[email protected]>
…aghazra#2856) * Top langs card: remove redundant number -> string -> number conversion * refactor(waka): remove redundant praseInt --------- Co-authored-by: rickstaa <[email protected]>
…aghazra#2856) * Top langs card: remove redundant number -> string -> number conversion * refactor(waka): remove redundant praseInt --------- Co-authored-by: rickstaa <[email protected]>
No description provided.