mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
Swift: Delete unusual blank lines
This commit is contained in:
3 files changed
-4
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user