mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-10 20:21:26 +00:00
r temp var -> to func
This commit is contained in:
parent
16f94420fa
commit
65d5bbf477
@ -12,11 +12,14 @@ def is_aged_brie(item: Item) -> None:
|
|||||||
return item.name == "Aged Brie"
|
return item.name == "Aged Brie"
|
||||||
|
|
||||||
|
|
||||||
|
def is_sulfuras(item: Item) -> None:
|
||||||
|
return item.name == "Sulfuras, Hand of Ragnaros"
|
||||||
|
|
||||||
|
|
||||||
def update_item(item: Item):
|
def update_item(item: Item):
|
||||||
is_sulfuras = item.name == "Sulfuras, Hand of Ragnaros"
|
|
||||||
is_backstage_pass = item.name == "Backstage passes to a TAFKAL80ETC concert"
|
is_backstage_pass = item.name == "Backstage passes to a TAFKAL80ETC concert"
|
||||||
|
|
||||||
if is_sulfuras:
|
if is_sulfuras(item):
|
||||||
return
|
return
|
||||||
|
|
||||||
if is_aged_brie(item):
|
if is_aged_brie(item):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user