mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-08 19:21:28 +00:00
r rm dead code
This commit is contained in:
parent
fac2855db6
commit
a12b2cc8fe
@ -12,33 +12,20 @@ def update_item(item: Item):
|
|||||||
is_aged_brie = item.name == "Aged Brie"
|
is_aged_brie = item.name == "Aged Brie"
|
||||||
|
|
||||||
if is_aged_brie:
|
if is_aged_brie:
|
||||||
if not True and item.name != "Backstage passes to a TAFKAL80ETC concert":
|
if item.quality < 50:
|
||||||
if item.quality > 0:
|
item.quality = item.quality + 1
|
||||||
if item.name != "Sulfuras, Hand of Ragnaros":
|
if item.name == "Backstage passes to a TAFKAL80ETC concert":
|
||||||
item.quality = item.quality - 1
|
if item.sell_in < 11:
|
||||||
else:
|
if item.quality < 50:
|
||||||
if item.quality < 50:
|
item.quality = item.quality + 1
|
||||||
item.quality = item.quality + 1
|
if item.sell_in < 6:
|
||||||
if item.name == "Backstage passes to a TAFKAL80ETC concert":
|
if item.quality < 50:
|
||||||
if item.sell_in < 11:
|
item.quality = item.quality + 1
|
||||||
if item.quality < 50:
|
|
||||||
item.quality = item.quality + 1
|
|
||||||
if item.sell_in < 6:
|
|
||||||
if item.quality < 50:
|
|
||||||
item.quality = item.quality + 1
|
|
||||||
if item.name != "Sulfuras, Hand of Ragnaros":
|
if item.name != "Sulfuras, Hand of Ragnaros":
|
||||||
item.sell_in = item.sell_in - 1
|
item.sell_in = item.sell_in - 1
|
||||||
if item.sell_in < 0:
|
if item.sell_in < 0:
|
||||||
if not True:
|
if item.quality < 50:
|
||||||
if item.name != "Backstage passes to a TAFKAL80ETC concert":
|
item.quality = item.quality + 1
|
||||||
if item.quality > 0:
|
|
||||||
if item.name != "Sulfuras, Hand of Ragnaros":
|
|
||||||
item.quality = item.quality - 1
|
|
||||||
else:
|
|
||||||
item.quality = item.quality - item.quality
|
|
||||||
else:
|
|
||||||
if item.quality < 50:
|
|
||||||
item.quality = item.quality + 1
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if not False and item.name != "Backstage passes to a TAFKAL80ETC concert":
|
if not False and item.name != "Backstage passes to a TAFKAL80ETC concert":
|
||||||
@ -65,9 +52,6 @@ def update_item(item: Item):
|
|||||||
item.quality = item.quality - 1
|
item.quality = item.quality - 1
|
||||||
else:
|
else:
|
||||||
item.quality = item.quality - item.quality
|
item.quality = item.quality - item.quality
|
||||||
else:
|
|
||||||
if item.quality < 50:
|
|
||||||
item.quality = item.quality + 1
|
|
||||||
|
|
||||||
|
|
||||||
class GildedRose:
|
class GildedRose:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user