Skip to content

Commit 3001511

Browse files
committed
Fix?!
1 parent 2bd49a5 commit 3001511

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Plugins/AWSLambdaPackager/PluginUtils.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,9 @@ struct Utils {
3030
print("\(executable.absoluteString) \(arguments.joined(separator: " "))")
3131
}
3232

33-
// #if compiler(>=6.0) && compiler(<6.0.1) && os(Linux)
34-
// let fd = dup(1)!
35-
// #else
3633
let fd = dup(1)
37-
// #endif
3834
let stdout = fdopen(fd, "rw")
39-
defer { fclose(stdout) }
35+
defer { fclose(stdout!) }
4036

4137
// We need to use an unsafe transfer here to get the fd into our Sendable closure.
4238
// This transfer is fine, because we write to the variable from a single SerialDispatchQueue here.

0 commit comments

Comments
 (0)