Consistent naming

This commit is contained in:
Jesper 2022-04-13 17:19:16 +02:00
parent 8cbae0fd1b
commit 20ccdb2aa5

View File

@ -21,7 +21,7 @@ export class GildedRose {
this.items.forEach((item, i) => {
item.quality = updateItemQuality(item)
item.sellIn = updateSellIn(item)
item.sellIn = updateItemSellIn(item)
item.quality = sellInBelow0(item)
})
@ -30,8 +30,9 @@ export class GildedRose {
}
}
function updateSellIn({name, sellIn}: Item) {
function updateItemSellIn({name, sellIn}: Item) {
if (name == 'Sulfuras, Hand of Ragnaros') return sellIn
return sellIn - 1;
}