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