[gardening] Remove redundant nil-initialization of optional variable

From the Swift documentation:

"If you define an optional variable without providing a default value,
 the variable is automatically set to nil for you."
This commit is contained in:
practicalswift
2016-09-18 07:40:07 +02:00
parent 41c09f068b
commit fa7fbdb8b0
89 changed files with 137 additions and 137 deletions

View File

@@ -33,7 +33,7 @@ PrintTests.test("Printable") {
PrintTests.test("custom string convertible structs") {
struct Wrapper : CustomStringConvertible {
var x: CustomStringConvertible? = nil
var x: CustomStringConvertible?
var description: String {
return "Wrapper(\(x.debugDescription))"