removed duplicated conditionals

This commit is contained in:
ollie beney 2020-11-05 14:14:54 +00:00
parent 3773a972aa
commit 146f686d14

View File

@ -16,14 +16,14 @@ class GildedRose
item.quality = item.quality + 1
if item.name.downcase.match /backstage/
if item.sell_in < 11
if item.quality < 50
item.quality = item.quality + 1
end
end
if item.sell_in < 6
if item.quality < 50
item.quality = item.quality + 1
end
end
end
end