Skip to content

Commit bfe5cc1

Browse files
authored
Correctly organise imports (#224)
1 parent 3f4a6a8 commit bfe5cc1

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

Sources/AsyncProcess/ProcessExecutor.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import AsyncAlgorithms
1414
import Atomics
15+
import Foundation
1516
import Logging
1617
import NIO
1718
import ProcessSpawnSync
@@ -30,13 +31,6 @@ import ProcessSpawnSync
3031
typealias Process = PSProcess
3132
#endif
3233

33-
#if os(iOS) || os(tvOS) || os(watchOS)
34-
// Note: Process() in iOS/tvOS/watchOS is available in internal builds only under Foundation Private/headers
35-
import Foundation_Private.NSTask
36-
#else
37-
import Foundation
38-
#endif
39-
4034
public struct ProcessOutputStream: Sendable & Hashable & CustomStringConvertible {
4135
internal enum Backing {
4236
case standardOutput

Sources/ProcessSpawnSync/ProcessSpawner.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,9 @@
1212

1313
import Atomics
1414
import CProcessSpawnSync
15+
import Foundation
1516
import NIOConcurrencyHelpers
1617

17-
#if os(iOS) || os(tvOS) || os(watchOS)
18-
// Note: Process in iOS/tvOS/watchOS is available in internal builds only under Foundation Private/headers
19-
import Foundation_Private.NSTask
20-
#else
21-
import Foundation
22-
#endif
23-
2418
extension ps_error_s {
2519
private func makeDescription() -> String {
2620
return """

0 commit comments

Comments
 (0)