changed if statement to inline conditional

This commit is contained in:
ollie beney 2020-11-04 17:10:04 +00:00
parent 0ae0723f57
commit 6c85b130e5

View File

@ -7,10 +7,8 @@ class GildedRose
def self.update_quality(items)
items.map do |item|
if item.name != "Aged Brie" and item.name != "Backstage passes to a TAFKAL80ETC concert"
if !sulfuras?(item)
update_normal_quality(item)
end
update_normal_quality(item) if !sulfuras?(item)
else