mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 04:12:13 +00:00
Merge pull request #532 from jonreid/master
swift: use && instead of , for beginners and for automated mutation
This commit is contained in:
commit
f42247354b
@ -7,7 +7,7 @@ public class GildedRose {
|
||||
|
||||
public func updateQuality() {
|
||||
for i in 0 ..< items.count {
|
||||
if items[i].name != "Aged Brie", items[i].name != "Backstage passes to a TAFKAL80ETC concert" {
|
||||
if items[i].name != "Aged Brie" && items[i].name != "Backstage passes to a TAFKAL80ETC concert" {
|
||||
if items[i].quality > 0 {
|
||||
if items[i].name != "Sulfuras, Hand of Ragnaros" {
|
||||
items[i].quality = items[i].quality - 1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user