Skip to content

Commit e074052

Browse files
committed
Make a code change so that it compiles with Swift 5.3 toolchain.
1 parent 9a52682 commit e074052

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Workspace/DefaultExtensionRunner.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ public struct DefaultExtensionRunner: ExtensionRunner {
165165
// script, it can be safely split out while maintaining the ability to see debug output without resorting
166166
// to side-channel communication that might be not be very cross-platform (e.g. pipes, file handles, etc).
167167
var stdoutPieces = try result.output.get().split(separator: 0, omittingEmptySubsequences: false)
168-
let json = (stdoutPieces.count > 1) ? Data(stdoutPieces.removeLast()) : nil
168+
let jsonPiece = (stdoutPieces.count > 1) ? Data(stdoutPieces.removeLast()) : nil
169169
let stdout = Data(stdoutPieces.joined())
170170
let stderr = try Data(result.stderrOutput.get())
171-
guard let json = json else {
171+
guard let json = jsonPiece else {
172172
throw DefaultExtensionRunnerError.didNotReceiveJSONFromExtension("didn't get any structured output from running the extension")
173173
}
174174

0 commit comments

Comments
 (0)