1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-23 22:11:22 +01:00

Fix warnings

This commit is contained in:
Nathan Mattes 2023-11-23 15:47:51 +01:00
parent 361ad357db
commit 315d15b256

View File

@ -72,7 +72,7 @@ extension DataSourceFacade {
) async throws { ) async throws {
switch buttonState { switch buttonState {
case .follow: case .follow:
try await DataSourceFacade.responseToUserFollowAction( _ = try await DataSourceFacade.responseToUserFollowAction(
dependency: dependency, dependency: dependency,
user: user user: user
) )
@ -80,21 +80,21 @@ extension DataSourceFacade {
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followingUserIds.append(user.id) dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followingUserIds.append(user.id)
case .request: case .request:
try await DataSourceFacade.responseToUserFollowAction( _ = try await DataSourceFacade.responseToUserFollowAction(
dependency: dependency, dependency: dependency,
user: user user: user
) )
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followRequestedUserIDs.append(user.id) dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followRequestedUserIDs.append(user.id)
case .unfollow: case .unfollow:
try await DataSourceFacade.responseToUserFollowAction( _ = try await DataSourceFacade.responseToUserFollowAction(
dependency: dependency, dependency: dependency,
user: user user: user
) )
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followingUserIds.removeAll(where: { $0 == user.id }) dependency.authContext.mastodonAuthenticationBox.inMemoryCache.followingUserIds.removeAll(where: { $0 == user.id })
case .blocked: case .blocked:
try await DataSourceFacade.responseToUserBlockAction( try await DataSourceFacade.responseToUserBlockAction(
dependency: dependency, dependency: dependency,
user: user user: user
) )
@ -102,7 +102,7 @@ extension DataSourceFacade {
dependency.authContext.mastodonAuthenticationBox.inMemoryCache.blockedUserIds.append(user.id) dependency.authContext.mastodonAuthenticationBox.inMemoryCache.blockedUserIds.append(user.id)
case .pending: case .pending:
try await DataSourceFacade.responseToUserFollowAction( _ = try await DataSourceFacade.responseToUserFollowAction(
dependency: dependency, dependency: dependency,
user: user user: user
) )