1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-05 21:41:35 +01:00

Improve code style (IOS-271)

This commit is contained in:
Marcus Kida 2024-06-26 14:36:17 +02:00
parent ad8d5e6e69
commit 199a6624e8
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40

View File

@ -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, [:]))