chore: Codestyle changes

This commit is contained in:
Marcus Kida 2022-12-13 07:10:08 +01:00
parent 903d789b53
commit 518941b10c
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 7 additions and 9 deletions

View File

@ -48,6 +48,13 @@ extension Instance {
public var canFollowTags: Bool {
version?.majorServerVersion(greaterThanOrEquals: 4) ?? false // following Tags is support beginning with Mastodon v4.0.0
}
var isTranslationEnabled: Bool {
if let configuration = configurationV2 {
return configuration.translation?.enabled == true
}
return false
}
}
extension String {
@ -60,12 +67,3 @@ extension String {
return majorVersionInt >= comparedVersion
}
}
extension Instance {
var isTranslationEnabled: Bool {
if let configuration = configurationV2 {
return configuration.translation?.enabled == true
}
return false
}
}