We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8902d46 commit bb2c464Copy full SHA for bb2c464
utils/make-pkgconfig.swift
@@ -76,7 +76,7 @@ func makeFile() throws {
76
.replacing(charactersIn: .newlines, with: "")
77
.replacingOccurrences(of: "svn", with: "")
78
let components = versionStr.components(separatedBy: ".")
79
- .flatMap { Int($0) }
+ .compactMap { Int($0) }
80
81
guard components.count == 3 else {
82
throw "Invalid version number \(versionStr)"
0 commit comments