Skip to content

Commit 91703ef

Browse files
committed
Use Swift 5.2 syntax
1 parent b5414e3 commit 91703ef

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.swiftformat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# file options
22

3-
--swiftversion 5.1
3+
--swiftversion 5.2
44
--exclude .build
55

66
# format options

Tests/TencentSCFEventsTests/CTimerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class CTimerTests: XCTestCase {
5252
XCTFail("Unexpected error: \(error)"); return
5353
}
5454

55-
XCTAssertEqual(context.codingPath.compactMap { $0.stringValue }, ["Type"])
55+
XCTAssertEqual(context.codingPath.map(\.stringValue), ["Type"])
5656
XCTAssertEqual(context.debugDescription, #"Expected type to be "Timer", but `\#(type)` does not match"#)
5757
XCTAssertNil(context.underlyingError)
5858
}

0 commit comments

Comments
 (0)