Skip to content

Commit

Permalink
ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
jklein24 committed Jan 19, 2024
1 parent 10c7882 commit 59d9ff3
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ data class LnurlpRequest(
) {
throw IllegalArgumentException("Invalid uma request path: $url")
}
val port =
if (urlBuilder.port != 443 && urlBuilder.port != 80 && urlBuilder.port != 0) ":${urlBuilder.port}" else ""
val port = if (urlBuilder.port != 443 && urlBuilder.port != 80 && urlBuilder.port != 0) {
":${urlBuilder.port}"
} else {
""
}
val receiverAddress = "${urlBuilder.pathSegments[3]}@${urlBuilder.host}$port"
val vaspDomain = urlBuilder.parameters["vaspDomain"]
val nonce = urlBuilder.parameters["nonce"]
Expand Down

0 comments on commit 59d9ff3

Please sign in to comment.