Remove switch case
This commit is contained in:
parent
4874615739
commit
80df919da1
|
@ -115,10 +115,7 @@ extension ThreadViewModel.LoadThreadState {
|
|||
|
||||
class NoMore: ThreadViewModel.LoadThreadState {
|
||||
override func isValidNextState(_ stateClass: AnyClass) -> Bool {
|
||||
switch stateClass {
|
||||
case is Loading.Type: return true
|
||||
default: return false
|
||||
}
|
||||
stateClass is Loading.Type
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue