Remove a duplicate condition (#1021)
This commit is contained in:
parent
124638a0cb
commit
2214bb7342
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue