Remove completely unnecessary double spaces.
This commit is contained in:
@@ -150,7 +150,7 @@ extension NSTask {
|
||||
/** The full path to the executable + all arguments, each one quoted if it contains a space. */
|
||||
func commandAsString () -> String? {
|
||||
guard let path = self.launchPath else { return nil }
|
||||
return self.arguments?.reduce(path) { acc, arg in
|
||||
return self.arguments?.reduce(path) { acc, arg in
|
||||
return acc + " " + ( arg.characters.contains(" ") ? ("\"" + arg + "\"") : arg )
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//
|
||||
// Context_Tests.swift
|
||||
// SwiftShell2
|
||||
// Context_Tests.swift
|
||||
// SwiftShell2
|
||||
//
|
||||
// Created by Kåre Morstøl on 20.07.15.
|
||||
// Created by Kåre Morstøl on 20.07.15.
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//
|
||||
// Array_Tests.swift
|
||||
// SwiftShell2
|
||||
// Array_Tests.swift
|
||||
// SwiftShell2
|
||||
//
|
||||
// Created by Kåre Morstøl on 20.09.15.
|
||||
// Created by Kåre Morstøl on 20.09.15.
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user