Skip to content

Commit d3ecd80

Browse files
committed
warnings: fix spaces
1 parent 2d3b562 commit d3ecd80

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Foundation/NSKeyedArchiver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ open class NSKeyedArchiver : NSCoder {
612612

613613
if _isContainer(object) {
614614
guard let codable = object as? NSCoding else {
615-
fatalError("Object \(String(describing:object)) does not conform to NSCoding")
615+
fatalError("Object \(String(describing: object)) does not conform to NSCoding")
616616
}
617617

618618
let innerEncodingContext = EncodingContext()

Foundation/NSKeyedUnarchiver.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ open class NSKeyedUnarchiver : NSCoder {
454454

455455
guard let classReference = innerDecodingContext.dict["$class"] as? _NSKeyedArchiverUID else {
456456
throw _decodingError(CocoaError.coderReadCorrupt,
457-
withDescription: "Invalid class reference \(String(describing:innerDecodingContext.dict["$class"])). The data may be corrupt.")
457+
withDescription: "Invalid class reference \(String(describing: innerDecodingContext.dict["$class"])). The data may be corrupt.")
458458
}
459459

460460
var classToConstruct : AnyClass? = try _validateAndMapClassReference(classReference,

TestFoundation/TestNSURL.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,23 +158,23 @@ class TestNSURL : XCTestCase {
158158
differences.append(" \(key) Expected = '\(expectedValue)', Got = '\(testedValue)'")
159159
}
160160
} else {
161-
differences.append(" \(key) Expected = '\(expectedValue)', Got = '\(String(describing:got[key]))'")
161+
differences.append(" \(key) Expected = '\(expectedValue)', Got = '\(String(describing: got[key]))'")
162162
}
163163
} else if let expectedValue = obj as? [String] {
164164
if let testedValue = got[key] as? [String] {
165165
if expectedValue != testedValue {
166166
differences.append(" \(key) Expected = '\(expectedValue)', Got = '\(testedValue)'")
167167
}
168168
} else {
169-
differences.append(" \(key) Expected = '\(expectedValue)', Got = '\(String(describing:got[key]))'")
169+
differences.append(" \(key) Expected = '\(expectedValue)', Got = '\(String(describing: got[key]))'")
170170
}
171171
} else if let expectedValue = obj as? Int {
172172
if let testedValue = got[key] as? Int {
173173
if expectedValue != testedValue {
174174
differences.append(" \(key) Expected = '\(expectedValue)', Got = '\(testedValue)'")
175175
}
176176
} else {
177-
differences.append(" \(key) Expected = '\(expectedValue)', Got = '\(String(describing:got[key]))'")
177+
differences.append(" \(key) Expected = '\(expectedValue)', Got = '\(String(describing: got[key]))'")
178178
}
179179
}
180180

TestFoundation/TestNSXMLDocument.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ class TestNSXMLDocument : XCTestCase {
6767

6868
func test_basicCreation() {
6969
let doc = XMLDocument(rootElement: nil)
70-
XCTAssert(doc.version == "1.0", "expected 1.0, got \(String(describing:doc.version))")
70+
XCTAssert(doc.version == "1.0", "expected 1.0, got \(String(describing: doc.version))")
7171
doc.version = "1.1"
72-
XCTAssert(doc.version == "1.1", "expected 1.1, got \(String(describing:doc.version))")
72+
XCTAssert(doc.version == "1.1", "expected 1.1, got \(String(describing: doc.version))")
7373
let node = XMLElement(name: "Hello", uri: "http://www.example.com")
7474

7575
doc.setRootElement(node)

0 commit comments

Comments
 (0)