mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-20 12:55:06 +00:00
merge if else
This commit is contained in:
1 parent
74c809e44a
commit
48b98d08c0
1 file changed
+1
-3
@@ -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 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user