Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-kaczmarek committed Oct 25, 2024
1 parent 8886547 commit b27f974
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ data class QualifiedID(
@SerialName("domain")
val domain: String
) {
override fun toString(): String = if (domain.isEmpty()) value else "$value$VALUE_DOMAIN_SEPARATOR$domain"
override fun toString(): String =
if (domain.isEmpty()) value else "$value$VALUE_DOMAIN_SEPARATOR$domain"

fun toLogString(): String = if (domain.isEmpty()) {
value.obfuscateId()
Expand All @@ -48,7 +49,7 @@ data class QualifiedID(
* To be used when when of the instance do not have domain due to the API limitations.
*/
fun equalsIgnoringBlankDomain(other: QualifiedID): Boolean {
if(domain.isBlank() || other.domain.isBlank()) {
if (domain.isBlank() || other.domain.isBlank()) {
return value == other.value
}
return this == other
Expand Down

0 comments on commit b27f974

Please sign in to comment.