Skip to content

Commit bb2c464

Browse files
update for swift 4.1
1 parent 8902d46 commit bb2c464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/make-pkgconfig.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func makeFile() throws {
7676
.replacing(charactersIn: .newlines, with: "")
7777
.replacingOccurrences(of: "svn", with: "")
7878
let components = versionStr.components(separatedBy: ".")
79-
.flatMap { Int($0) }
79+
.compactMap { Int($0) }
8080

8181
guard components.count == 3 else {
8282
throw "Invalid version number \(versionStr)"

0 commit comments

Comments
 (0)