mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +00:00
Swift: Delete unusual blank lines
This commit is contained in:
parent
9152b48215
commit
0ba7fabfb3
@ -1,4 +1,3 @@
|
||||
|
||||
public class GildedRose {
|
||||
var items:[Item]
|
||||
|
||||
@ -7,7 +6,6 @@ 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].quality > 0) {
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
|
||||
public class Item {
|
||||
public var name: String
|
||||
public var sellIn: Int
|
||||
|
||||
@ -19,7 +19,6 @@ if (CommandLine.argc > 1) {
|
||||
days = Int(CommandLine.arguments[1])! + 1
|
||||
}
|
||||
|
||||
|
||||
for i in 0..<days {
|
||||
print("-------- day \(i) --------");
|
||||
print("name, sellIn, quality");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user