From 013f9fa3226e4e47f85ed9370cc99134d63a1516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=B8vring?= Date: Mon, 17 Jul 2023 14:19:12 +0200 Subject: [PATCH] Removes unneeded initializers --- .../Internal/GitHubAppInstallation.swift | 10 ---------- Packages/Tart/Sources/Tart/TartLocator.swift | 4 ---- 2 files changed, 14 deletions(-) diff --git a/Packages/GitHub/Sources/GitHubServiceLive/Internal/GitHubAppInstallation.swift b/Packages/GitHub/Sources/GitHubServiceLive/Internal/GitHubAppInstallation.swift index 810fe5a..8ac2860 100644 --- a/Packages/GitHub/Sources/GitHubServiceLive/Internal/GitHubAppInstallation.swift +++ b/Packages/GitHub/Sources/GitHubServiceLive/Internal/GitHubAppInstallation.swift @@ -1,10 +1,6 @@ struct GitHubAppInstallation: Codable { struct Account: Codable { let login: String - - init(login: String) { - self.login = login - } } private enum CodingKeys: String, CodingKey { @@ -16,10 +12,4 @@ struct GitHubAppInstallation: Codable { let id: Int let appId: Int let account: Account - - init(id: Int, appId: Int, account: Account) { - self.id = id - self.appId = appId - self.account = account - } } diff --git a/Packages/Tart/Sources/Tart/TartLocator.swift b/Packages/Tart/Sources/Tart/TartLocator.swift index 55bfba1..1eb4f6d 100644 --- a/Packages/Tart/Sources/Tart/TartLocator.swift +++ b/Packages/Tart/Sources/Tart/TartLocator.swift @@ -15,10 +15,6 @@ enum TartLocatorError: LocalizedError { struct TartLocator { let shell: Shell - init(shell: Shell) { - self.shell = shell - } - func locate() throws -> String { let candidates = ["/opt/homebrew/bin/tart"] let fileManager: FileManager = .default