From 199a6624e8ed47185feb6a002a0b45d47c6c21ce Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Wed, 26 Jun 2024 14:36:17 +0200 Subject: [PATCH] Improve code style (IOS-271) --- MastodonSDK/Sources/MastodonCore/MastodonAuthentication.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MastodonSDK/Sources/MastodonCore/MastodonAuthentication.swift b/MastodonSDK/Sources/MastodonCore/MastodonAuthentication.swift index 752182ed9..6e304d580 100644 --- a/MastodonSDK/Sources/MastodonCore/MastodonAuthentication.swift +++ b/MastodonSDK/Sources/MastodonCore/MastodonAuthentication.swift @@ -141,7 +141,7 @@ public struct MastodonAuthentication: Codable, Hashable, UserIdentifier { @MainActor func updating(instanceV2 instance: Mastodon.Entity.V2.Instance) -> Self { guard - let instanceConfiguration = self.instanceConfiguration, + let instanceConfiguration, case let InstanceConfiguration.v2(_, translationLanguages) = instanceConfiguration else { return copy(instanceConfiguration: .v2(instance, [:]))