SwiftFormat redundantType

This commit is contained in:
Nindi Gill 2023-11-19 19:33:36 +11:00
parent d54898baa4
commit 46d9bd7259
No known key found for this signature in database
GPG key ID: FF9A7FD590D4F4B1
25 changed files with 64 additions and 64 deletions

View file

@ -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