Skip to content

Commit

Permalink
Remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBarnegren committed Nov 19, 2017
1 parent 569841c commit 40d9a26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/ShellOut.swift
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,11 @@ private extension Process {
#endif

waitUntilExit()

if let handle = outputHandle, !handle.isStandard {
handle.closeFile()
}

if let handle = errorHandle, !handle.isStandard {
handle.closeFile()
}
Expand All @@ -401,7 +401,7 @@ private extension Process {
outputData: outputData
)
}

return outputData.shellOutput()
}
}
Expand All @@ -419,7 +419,7 @@ private extension Data {
guard let output = String(data: self, encoding: .utf8) else {
return ""
}

guard !output.hasSuffix("\n") else {
let endIndex = output.index(before: output.endIndex)
return String(output[..<endIndex])
Expand Down

0 comments on commit 40d9a26

Please sign in to comment.