Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes unneeded initializers #41

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
struct GitHubAppInstallation: Codable {
struct Account: Codable {
let login: String

init(login: String) {
self.login = login
}
}

private enum CodingKeys: String, CodingKey {
Expand All @@ -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
}
}
4 changes: 0 additions & 4 deletions Packages/Tart/Sources/Tart/TartLocator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading