Skip to content

Commit

Permalink
rm: unnecessary-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rohittcodes committed Dec 19, 2024
1 parent df101bc commit 56d2703
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/utils/convert-si-unit-to-number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,11 @@ export const parseAndConvertSiUnit = <

const numberPart = v.slice(0, -unit.length)
if (
unit.toLowerCase() in si_prefix_multiplier &&
unit in si_prefix_multiplier &&
!unitMappingAndVariantSuffixes.has(unit)
) {
const siMultiplier =
si_prefix_multiplier[
unit.toLowerCase() as keyof typeof si_prefix_multiplier
]
si_prefix_multiplier[unit as keyof typeof si_prefix_multiplier]
return {
parsedUnit: null,
unitOfValue: null,
Expand Down

0 comments on commit 56d2703

Please sign in to comment.