mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 14:31:28 +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.quality > 0
|
||||
if !sulfuras?(item)
|
||||
item.quality = item.quality - 1
|
||||
update_normal_quality(item)
|
||||
end
|
||||
end
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user