From 671b0e33f4d5c6065ee6696b103f19915d6b22dc Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Wed, 7 Dec 2022 16:03:52 +0100 Subject: [PATCH] chore: Code-style adjustments --- .../MastodonUI/View/Content/NotificationView+ViewModel.swift | 4 ++-- .../MastodonUI/View/Content/StatusView+ViewModel.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView+ViewModel.swift b/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView+ViewModel.swift index 11039875a..40c4f2870 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView+ViewModel.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView+ViewModel.swift @@ -209,13 +209,13 @@ extension NotificationView.ViewModel { $isTranslated ) ) - .sink { authorName, isMuting, isBlocking, comb2 in + .sink { authorName, isMuting, isBlocking, isMyselfIsTranslated in guard let name = authorName?.string else { notificationView.menuButton.menu = nil return } - let (isMyself, isTranslated) = comb2 + let (isMyself, isTranslated) = isMyselfIsTranslated let menuContext = NotificationView.AuthorMenuContext( name: name, diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift b/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift index eee318170..6432826c8 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/StatusView+ViewModel.swift @@ -148,7 +148,7 @@ extension StatusView { filterContext = nil } - init() { + init() { // isReblogEnabled Publishers.CombineLatest( $visibility,