Skip to content

Commit

Permalink
changed property method order
Browse files Browse the repository at this point in the history
Signed-off-by: Basler182 <[email protected]>
  • Loading branch information
Basler182 committed Jun 22, 2024
1 parent f33201e commit 175955c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ internal abstract class FormValidator {
data object Valid : Result
data class Invalid(val message: String) : Result

fun errorMessageOrNull() = if (this is Invalid) message else null

val isValid: Boolean
get() = this is Valid

fun errorMessageOrNull() = if (this is Invalid) message else null
}
}

0 comments on commit 175955c

Please sign in to comment.