mirror of
https://github.com/ninxsoft/Mist.git
synced 2025-06-02 00:08:23 -04:00
SwiftFormat redundantType
This commit is contained in:
parent
d54898baa4
commit
46d9bd7259
25 changed files with 64 additions and 64 deletions
Shared
|
@ -9,8 +9,8 @@ import Foundation
|
|||
|
||||
/// Helper class used to execute shell commands.
|
||||
class ShellExecutor: NSObject {
|
||||
static var shared: ShellExecutor = ShellExecutor()
|
||||
private var process: Process = Process()
|
||||
static var shared: ShellExecutor = .init()
|
||||
private var process: Process = .init()
|
||||
|
||||
/// Executes custom shell commands.
|
||||
///
|
||||
|
@ -27,8 +27,8 @@ class ShellExecutor: NSObject {
|
|||
environment variables: [String: String] = [:],
|
||||
currentDirectoryPath: String? = nil
|
||||
) throws -> HelperToolCommandResponse {
|
||||
let outputPipe: Pipe = Pipe()
|
||||
let errorPipe: Pipe = Pipe()
|
||||
let outputPipe: Pipe = .init()
|
||||
let errorPipe: Pipe = .init()
|
||||
process = Process()
|
||||
process.launchPath = "/usr/bin/env"
|
||||
process.arguments = arguments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue