Remove completely unnecessary double spaces.

This commit is contained in:
Kare Morstol
2015-10-04 20:25:39 +02:00
parent 560ea1e8ec
commit b7dab5666e
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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 )
}
}
+3 -3
View File
@@ -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.
//
//
+3 -3
View File
@@ -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.
//
//