From 611d92d46c491df3eeae55f5631ca24d21ccf34c Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Sun, 5 Nov 2023 21:34:55 +0100 Subject: [PATCH] Fix another warning --- .../Protocol/Provider/DataSourceFacade+Translate.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Mastodon/Protocol/Provider/DataSourceFacade+Translate.swift b/Mastodon/Protocol/Provider/DataSourceFacade+Translate.swift index 912540f6992..7560d90086c 100644 --- a/Mastodon/Protocol/Provider/DataSourceFacade+Translate.swift +++ b/Mastodon/Protocol/Provider/DataSourceFacade+Translate.swift @@ -49,11 +49,12 @@ private extension DataSourceFacade { authenticationBox: provider.authContext.mastodonAuthenticationBox ).value - guard let content = value.content else { + if value.content != nil { + return value + } else { return nil } - - return value + } catch { throw TranslationFailure.emptyOrInvalidResponse }