Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
songkeys committed Sep 23, 2023
1 parent 1355d33 commit d28f6dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ function resolveFile(
}

export function parseParamValue(prop: string, value: string) {
if (value === "true" || value === "false") {
return value === "true"
if (value === 'true' || value === 'false') {
return value === 'true'
}
if (!isNaN(Number(value))) {
return Number(value)
return Number(value)
}
return value
}
}

0 comments on commit d28f6dc

Please sign in to comment.