Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbzurovski committed Aug 22, 2024
1 parent 6210b90 commit 108082f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ extension EntitiesVisibilityClient {
}

extension EntitiesVisibilityClient {
func hideAccount(_ account: Account) async throws {
func hide(account: Account) async throws {
try await hideAccount(account.id)
}

func hidePersona(_ persona: Persona) async throws {
func hide(persona: Persona) async throws {
try await hidePersona(persona.id)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public struct AccountPreferences: Sendable, FeatureReducer {

private func hideAccountEffect(state: State) -> Effect<Action> {
.run { [account = state.account] send in
try await entitiesVisibilityClient.hideAccount(account)
try await entitiesVisibilityClient.hide(account: account)
overlayWindowClient.scheduleHUD(.accountHidden)
await send(.delegate(.accountHidden))
} catch: { error, _ in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public struct PersonaDetails: Sendable, FeatureReducer {
return .none
}
return .run { send in
try await entitiesVisibilityClient.hidePersona(persona)
try await entitiesVisibilityClient.hide(persona: persona)
overlayWindowClient.scheduleHUD(.personaHidden)
await send(.delegate(.personaHidden))
} catch: { error, _ in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ extension ProfileNetwork {
var identifiedPersonas = personas.asIdentified()
var identifiedAuthorizedDapps = authorizedDapps.asIdentified()

/// Hide the personas themselves
/// Hide the persona themself
identifiedPersonas[id: id]?.hide()

/// Remove the persona reference on any authorized dapp
Expand Down

0 comments on commit 108082f

Please sign in to comment.