mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +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() {
|
public func updateQuality() {
|
||||||
for i in 0 ..< items.count {
|
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].quality > 0 {
|
||||||
if items[i].name != "Sulfuras, Hand of Ragnaros" {
|
if items[i].name != "Sulfuras, Hand of Ragnaros" {
|
||||||
items[i].quality = items[i].quality - 1
|
items[i].quality = items[i].quality - 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user