diff --git a/TypeScript/app/gilded-rose.ts b/TypeScript/app/gilded-rose.ts index e376b51d..b0f4225a 100644 --- a/TypeScript/app/gilded-rose.ts +++ b/TypeScript/app/gilded-rose.ts @@ -31,9 +31,8 @@ export class GildedRose { } function updateSellIn(item: Item) { - if (item.name != 'Sulfuras, Hand of Ragnaros') { - item.sellIn = item.sellIn - 1; - } + if (item.name == 'Sulfuras, Hand of Ragnaros') return + item.sellIn = item.sellIn - 1; } function updateItemQuality({name, quality, sellIn, ...rest}: Item): number {