Remove switch case

This commit is contained in:
Marcus Kida 2023-12-27 10:42:56 +01:00
parent 4874615739
commit 80df919da1
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 1 additions and 4 deletions

View File

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