From 2214bb734215c9863ebca6fe8725997b500ca79b Mon Sep 17 00:00:00 2001 From: woxtu Date: Thu, 20 Apr 2023 05:40:09 +0900 Subject: [PATCH] Remove a duplicate condition (#1021) --- .../SearchResult/SearchResultViewModel+Diffable.swift | 2 -- 1 file changed, 2 deletions(-) diff --git a/Mastodon/Scene/Search/SearchDetail/SearchResult/SearchResultViewModel+Diffable.swift b/Mastodon/Scene/Search/SearchDetail/SearchResult/SearchResultViewModel+Diffable.swift index b9eb5a9ae..66170438c 100644 --- a/Mastodon/Scene/Search/SearchDetail/SearchResult/SearchResultViewModel+Diffable.swift +++ b/Mastodon/Scene/Search/SearchDetail/SearchResult/SearchResultViewModel+Diffable.swift @@ -66,8 +66,6 @@ extension SearchResultViewModel { is State.Idle: let attribute = SearchResultItem.BottomLoaderAttribute(isEmptyResult: false) snapshot.appendItems([.bottomLoader(attribute: attribute)], toSection: .main) - case is State.Fail: - break case is State.NoMore: if snapshot.itemIdentifiers.isEmpty { let attribute = SearchResultItem.BottomLoaderAttribute(isEmptyResult: true)