mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +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)
|
def self.update_quality(items)
|
||||||
items.map do |item|
|
items.map do |item|
|
||||||
if item.name != "Aged Brie" and item.name != "Backstage passes to a TAFKAL80ETC concert"
|
if item.name != "Aged Brie" and item.name != "Backstage passes to a TAFKAL80ETC concert"
|
||||||
|
|
||||||
if !sulfuras?(item)
|
update_normal_quality(item) if !sulfuras?(item)
|
||||||
update_normal_quality(item)
|
|
||||||
end
|
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user