Remove unnecessary explicit inits.

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
Ross Goldberg 2024-10-01 14:11:58 -04:00
parent d413d8cfa1
commit 6793a91e03
No known key found for this signature in database
6 changed files with 0 additions and 12 deletions

View file

@ -14,8 +14,6 @@ public struct AccountCommand: CommandProtocol {
public let verb = "account"
public let function = "Prints the primary account Apple ID"
public init() {}
/// Runs the command.
public func run(_: Options) -> Result<Void, MASError> {
if #available(macOS 12, *) {

View file

@ -15,8 +15,6 @@ public struct ResetCommand: CommandProtocol {
public let verb = "reset"
public let function = "Resets the Mac App Store"
public init() {}
/// Runs the command.
public func run(_ options: Options) -> Result<Void, MASError> {
// The "Reset Application" command in the Mac App Store debug menu performs

View file

@ -15,8 +15,6 @@ public struct SignInCommand: CommandProtocol {
public let verb = "signin"
public let function = "Sign in to the Mac App Store"
public init() {}
/// Runs the command.
public func run(_ options: Options) -> Result<Void, MASError> {
do {

View file

@ -14,8 +14,6 @@ public struct SignOutCommand: CommandProtocol {
public let verb = "signout"
public let function = "Sign out of the Mac App Store"
public init() {}
/// Runs the command.
public func run(_: Options) -> Result<Void, MASError> {
if #available(macOS 10.13, *) {

View file

@ -14,8 +14,6 @@ public struct VersionCommand: CommandProtocol {
public let verb = "version"
public let function = "Print version number"
public init() {}
/// Runs the command.
public func run(_: Options) -> Result<Void, MASError> {
print(Package.version)

View file

@ -21,8 +21,6 @@ class OpenSystemCommandMock: ExternalCommand {
var stdoutPipe = Pipe()
var stderrPipe = Pipe()
init() {}
func run(arguments: String...) throws {
self.arguments = arguments
}