Skip to content

Commit

Permalink
removed unnecessary deleteContent parameter from legacyDeleteUser
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBAndrews committed Nov 11, 2023
1 parent b42bb4f commit 5bb5dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Mlem/API/APIClient/APIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ extension APIClient {

// MARK: - User requests

func legacyDeleteUser(user: SavedAccount, password: String, deleteContent: Bool) async throws {
func legacyDeleteUser(user: SavedAccount, password: String) async throws {
let request = LegacyDeleteAccountRequest(account: user, password: password)
try await perform(request: request)
}
Expand Down
2 changes: 1 addition & 1 deletion Mlem/Views/Shared/Accounts/DeleteAccountView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ struct DeleteAccountView: View {
if canDeleteContent {
try await apiClient.deleteUser(user: account, password: password, deleteContent: deleteContent)
} else {
try await apiClient.legacyDeleteUser(user: account, password: password, deleteContent: deleteContent)
try await apiClient.legacyDeleteUser(user: account, password: password)
}
accountsTracker.removeAccount(account: account)
if account == appState.currentActiveAccount {
Expand Down

0 comments on commit 5bb5dbf

Please sign in to comment.