r Follow more standard Swift formatting around spaces

This commit is contained in:
Jon Reid 2021-08-20 18:54:10 -07:00
parent 84287f428b
commit 569b40fc1d
No known key found for this signature in database
GPG Key ID: 27DEB93ABA9EEA26

View File

@ -1,12 +1,12 @@
public class GildedRose {
var items:[Item]
var items: [Item]
public init(items:[Item]) {
public init(items: [Item]) {
self.items = items
}
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].quality > 0) {
if (items[i].name != "Sulfuras, Hand of Ragnaros") {