mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-20 08:51:08 +00:00
merge if else
This commit is contained in:
parent
74c809e44a
commit
48b98d08c0
@ -19,8 +19,7 @@ class GildedRose {
|
|||||||
if (item.sellIn < 0) {
|
if (item.sellIn < 0) {
|
||||||
item.increaseQualityByOne();
|
item.increaseQualityByOne();
|
||||||
}
|
}
|
||||||
} else {
|
} else if (item.isBackstagePasses()) {
|
||||||
if (item.isBackstagePasses()) {
|
|
||||||
item.increaseQualityBackstage();
|
item.increaseQualityBackstage();
|
||||||
|
|
||||||
item.decreaseSellInEachDay();
|
item.decreaseSellInEachDay();
|
||||||
@ -39,6 +38,5 @@ class GildedRose {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user