updated code to use update_normal_quality method

This commit is contained in:
ollie beney 2020-11-04 16:58:25 +00:00
parent 2431b8b11e
commit 626eab9e10

View File

@ -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