mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
Fix handleGenericItem
This commit is contained in:
parent
7531e0ead0
commit
78610c31c5
@ -35,11 +35,11 @@ class GildedRose {
|
||||
}
|
||||
|
||||
private static void handleGenericItem(Item item) {
|
||||
item.sellIn -= 1;
|
||||
if (item.quality == 0) {
|
||||
return;
|
||||
}
|
||||
item.sellIn -= 1;
|
||||
if (item.sellIn <= 0) {
|
||||
if (item.sellIn < 0) {
|
||||
item.quality -= 1;
|
||||
}
|
||||
item.quality -= 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user