mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-06-09 02:14:32 +00:00
infra: enable radix eslint rule (#3261)
This commit is contained in:
committed by
GitHub
parent
1c07f4142c
commit
b753d49158
+1
-1
@@ -232,7 +232,7 @@ const parseArray = (str) => {
|
||||
*/
|
||||
const clampValue = (number, min, max) => {
|
||||
// @ts-ignore
|
||||
if (Number.isNaN(parseInt(number))) {
|
||||
if (Number.isNaN(parseInt(number, 10))) {
|
||||
return min;
|
||||
}
|
||||
return Math.max(min, Math.min(number, max));
|
||||
|
||||
Reference in New Issue
Block a user