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 5a1fc12 commit f25c9d7Copy full SHA for f25c9d7
Sources/Testing/Support/Versions.swift
@@ -130,9 +130,7 @@ let simulatorVersion: String = {
130
///
131
/// This value is not part of the public interface of the testing library.
132
let testingLibraryVersion: String = {
133
- guard var result = swt_getTestingLibraryVersion().flatMap(String.init(validatingCString:)) else {
134
- return "unknown"
135
- }
+ var result = swt_getTestingLibraryVersion().flatMap(String.init(validatingCString:)) ?? "unknown"
136
137
// Get details of the git commit used when compiling the testing library.
138
var commitHash: UnsafePointer<CChar>?
0 commit comments