Skip to content

Commit c45ae10

Browse files
committed
chore: lint
1 parent bc39332 commit c45ae10

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/classes/recipe.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2009,12 +2009,12 @@ export class Recipe {
20092009
// v8 ignore else -- @preserve
20102010
if (alternative.quantity) {
20112011
const converted = convertAlternativeQuantity(
2012-
alternative as IngredientAlternative & MaybeScalableQuantity,
2012+
alternative,
20132013
);
20142014
alternative.quantity = converted.quantity;
20152015
alternative.unit = converted.unit;
20162016
(
2017-
alternative as IngredientAlternative & MaybeScalableQuantity
2017+
alternative
20182018
).scalable = converted.scalable;
20192019
alternative.equivalents = converted.equivalents;
20202020
}

src/classes/shopping_list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ export class ShoppingList {
488488
(e: QuantityWithPlainUnit) => e.unit!, // equivalents always have units
489489
);
490490
const recomputed = recomputeEquivalents(
491-
[entry as QuantityWithPlainUnit],
491+
[entry],
492492
ratioMap,
493493
equivUnits,
494494
);

src/quantities/mutations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,11 @@ export function toPlainUnit(
431431
else if (isOrGroup(quantity)) {
432432
return {
433433
or: quantity.or.map(toPlainUnit),
434-
} as MaybeNestedGroup<QuantityWithPlainUnit>;
434+
};
435435
} else {
436436
return {
437437
and: quantity.and.map(toPlainUnit),
438-
} as MaybeNestedGroup<QuantityWithPlainUnit>;
438+
};
439439
}
440440
}
441441

test/mocks/quantity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ export const qWithUnitDef = (
4444
): QuantityWithUnitDef => {
4545
const quantity = q(amount, unit, integerProtected);
4646
const resolvedUnit = resolveUnit(quantity.unit?.name, integerProtected);
47-
return { ...quantity, unit: resolvedUnit } as QuantityWithUnitDef;
47+
return { ...quantity, unit: resolvedUnit };
4848
};

0 commit comments

Comments
 (0)