Skip to content

Commit

Permalink
chore: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Nov 17, 2024
1 parent 08c9d82 commit ccfea9f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/lib/utils/skin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,15 @@ export function renderClickableRank(info: ItemInfo): TemplateResult<1> {
}

export function isSellableOnCSFloat(asset: rgAsset): boolean {
return isSkin(asset) || isCharm(asset) || isAgent(asset) || isSticker(asset) || isPin(asset) || isPatch(asset) || isCase(asset);
return (
isSkin(asset) ||
isCharm(asset) ||
isAgent(asset) ||
isSticker(asset) ||
isPin(asset) ||
isPatch(asset) ||
isCase(asset)
);
}

export function isSkin(asset: rgAsset): boolean {
Expand Down Expand Up @@ -144,15 +152,14 @@ function isAbstractType(asset: rgAsset, type: string, internalName: string): boo
if (asset.type.endsWith(type)) {
return true;
}

if (!asset.tags) {
return false;
}

return asset.tags.some((e) => e.category === 'Type' && e.internal_name === internalName);
}


export function getFadeCalculatorAndSupportedWeapon(
asset: rgAsset
): [typeof FadeCalculator | typeof AcidFadeCalculator | typeof AmberFadeCalculator, string] | undefined {
Expand Down

0 comments on commit ccfea9f

Please sign in to comment.