Skip to content

Commit 3a95d78

Browse files
committed
Process: Fix @available usage for deprecation
1 parent 82f7c96 commit 3a95d78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Foundation/Process.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@ open class Process: NSObject {
171171
open var arguments: [String]?
172172
open var environment: [String : String]? // if not set, use current
173173

174-
@available(*, deprecated: 4, renamed: "executableURL")
174+
@available(*, deprecated, renamed: "executableURL")
175175
open var launchPath: String? {
176176
get { return executableURL?.path }
177177
set { executableURL = (newValue != nil) ? URL(fileURLWithPath: newValue!) : nil }
178178
}
179179

180-
@available(*, deprecated: 4, renamed: "currentDirectoryURL")
180+
@available(*, deprecated, renamed: "currentDirectoryURL")
181181
open var currentDirectoryPath: String {
182182
get { return currentDirectoryURL.path }
183183
set { currentDirectoryURL = URL(fileURLWithPath: newValue) }
@@ -215,7 +215,7 @@ open class Process: NSObject {
215215

216216
// Actions
217217

218-
@available(*, deprecated: 4, renamed: "run")
218+
@available(*, deprecated, renamed: "run")
219219
open func launch() {
220220
do {
221221
try run()
@@ -535,7 +535,7 @@ open class Process: NSObject {
535535
return process
536536
}
537537

538-
@available(*, deprecated: 4, renamed: "run(_:arguments:terminationHandler:)")
538+
@available(*, deprecated, renamed: "run(_:arguments:terminationHandler:)")
539539
// convenience; create and launch
540540
open class func launchedProcess(launchPath path: String, arguments: [String]) -> Process {
541541
let process = Process()

0 commit comments

Comments
 (0)