mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 14:31:28 +00:00
changed if statement to inline conditional
This commit is contained in:
parent
0ae0723f57
commit
6c85b130e5
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user