Skip to content

Commit

Permalink
Fix Ktlint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bpedryc committed Jul 3, 2023
1 parent 1e5bbe8 commit 7dbc0ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ class BreedDetailsViewModel(
dogRepository.updateBreedFavorite(breedId)
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package co.touchlab.kampkit.ui.breedDetails
data class BreedDetailsViewState(
val breed: BreedDisplayable = BreedDisplayable(),
val error: String? = null,
val isLoading: Boolean = false,
val isLoading: Boolean = false
) {
companion object {
fun default() = BreedDetailsViewState()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package co.touchlab.kampkit.ui.breeds

import co.touchlab.kampkit.db.Breed
import co.touchlab.kampkit.core.ViewModel
import co.touchlab.kampkit.data.dog.DogRepository
import co.touchlab.kampkit.db.Breed
import co.touchlab.kermit.Logger
import com.rickclephas.kmp.nativecoroutines.NativeCoroutinesState
import kotlinx.coroutines.Job
Expand Down Expand Up @@ -59,7 +59,7 @@ class BreedsViewModel(
isLoading = false,
breeds = breeds,
error = errorMessage.takeIf { breeds.isEmpty() },
isEmpty = breeds.isEmpty() && errorMessage == null,
isEmpty = breeds.isEmpty() && errorMessage == null
)
}
}
Expand Down

0 comments on commit 7dbc0ba

Please sign in to comment.