File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -380,11 +380,11 @@ private extension Process {
380
380
#endif
381
381
382
382
waitUntilExit ( )
383
-
383
+
384
384
if let handle = outputHandle, !handle. isStandard {
385
385
handle. closeFile ( )
386
386
}
387
-
387
+
388
388
if let handle = errorHandle, !handle. isStandard {
389
389
handle. closeFile ( )
390
390
}
@@ -401,7 +401,7 @@ private extension Process {
401
401
outputData: outputData
402
402
)
403
403
}
404
-
404
+
405
405
return outputData. shellOutput ( )
406
406
}
407
407
}
@@ -419,7 +419,7 @@ private extension Data {
419
419
guard let output = String ( data: self , encoding: . utf8) else {
420
420
return " "
421
421
}
422
-
422
+
423
423
guard !output. hasSuffix ( " \n " ) else {
424
424
let endIndex = output. index ( before: output. endIndex)
425
425
return String ( output [ ..< endIndex] )
You can’t perform that action at this time.
0 commit comments