mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
r Follow more standard Swift formatting around spaces
This commit is contained in:
parent
84287f428b
commit
569b40fc1d
@ -1,12 +1,12 @@
|
|||||||
public class GildedRose {
|
public class GildedRose {
|
||||||
var items:[Item]
|
var items: [Item]
|
||||||
|
|
||||||
public init(items:[Item]) {
|
public init(items: [Item]) {
|
||||||
self.items = items
|
self.items = items
|
||||||
}
|
}
|
||||||
|
|
||||||
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") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user