mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
Split loops
This commit is contained in:
parent
20ccdb2aa5
commit
93cfbd0109
@ -20,12 +20,16 @@ export class GildedRose {
|
||||
updateQuality() {
|
||||
this.items.forEach((item, i) => {
|
||||
item.quality = updateItemQuality(item)
|
||||
|
||||
item.sellIn = updateItemSellIn(item)
|
||||
|
||||
item.quality = sellInBelow0(item)
|
||||
})
|
||||
|
||||
|
||||
this.items.forEach((item, i) => {
|
||||
item.sellIn = updateItemSellIn(item)
|
||||
})
|
||||
|
||||
this.items.forEach((item, i) => {
|
||||
item.quality = sellInBelow0(item)
|
||||
})
|
||||
return this.items;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user