mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
updated code to use update_normal_quality method
This commit is contained in:
parent
2431b8b11e
commit
626eab9e10
@ -37,7 +37,7 @@ class GildedRose
|
|||||||
if !item.name.downcase.match /backstage/
|
if !item.name.downcase.match /backstage/
|
||||||
if item.quality > 0
|
if item.quality > 0
|
||||||
if !sulfuras?(item)
|
if !sulfuras?(item)
|
||||||
item.quality = item.quality - 1
|
update_normal_quality(item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user