File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ object HealthProfessionalData {
4141 }
4242 }
4343
44- override fun equals (other : Any? ): Boolean =
45- when ( other) {
46- is HealthProfessional -> healthProfessionalId == other.healthProfessionalId
47- else -> false
48- }
44+ override fun equals (other : Any? ): Boolean = when {
45+ other == = this -> true
46+ other is HealthProfessional -> healthProfessionalId == other.healthProfessionalId
47+ else -> false
48+ }
4949
5050 override fun hashCode (): Int {
5151 return healthProfessionalId.hashCode()
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ data class User(
3232 }
3333 }
3434
35- override fun equals (other : Any? ): Boolean =
36- when ( other) {
37- is User -> userId == other.userId
38- else -> false
39- }
35+ override fun equals (other : Any? ): Boolean = when {
36+ other == = this -> true
37+ other is User -> userId == other.userId
38+ else -> false
39+ }
4040
4141 override fun hashCode (): Int {
4242 return userId.hashCode()
You can’t perform that action at this time.
0 commit comments