Remove a duplicate condition (#1021)

This commit is contained in:
woxtu 2023-04-20 05:40:09 +09:00 committed by GitHub
parent 124638a0cb
commit 2214bb7342
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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)