Skip to content

Commit f00e5d6

Browse files
committed
PR feedback
1 parent 86bed79 commit f00e5d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/SWBCore/SpecImplementations/Tools/SwiftCompiler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,7 @@ public final class SwiftCompilerSpec : CompilerSpec, SpecIdentifierType, SwiftDi
32373237
// See the related `previewXOJITThunkInfoResolvesSymlinkedSourcePath` test.
32383238
func resolvedPath(_ path: Path) -> Path { (try? fs.realpath(path)) ?? path }
32393239
let realSourceFile = resolvedPath(sourceFile)
3240-
selectedInputPath = originalInputs.first { resolvedPath($0) == realSourceFile } ?? sourceFile
3240+
selectedInputPath = originalInputs.only { resolvedPath($0) == realSourceFile } ?? sourceFile
32413241

32423242
if let driverPayload = payload.driverPayload {
32433243
do {

0 commit comments

Comments
 (0)