supress false positive

This commit is contained in:
davotoula
2026-03-06 14:25:04 +01:00
parent 5ac8b9ad62
commit 953e8c1749
@@ -126,12 +126,14 @@ class LightningAddressResolver {
okHttpClient: (String) -> OkHttpClient,
context: Context,
): String {
@Suppress("BlockingMethodInNonBlockingContext") // URLEncoder.encode is CPU-only, not I/O blocking
val encodedMessage = URLEncoder.encode(message, "utf-8")
val urlBinder = if (lnCallback.contains("?")) "&" else "?"
var url = "$lnCallback${urlBinder}amount=$milliSats&comment=$encodedMessage"
if (nostrRequest != null) {
@Suppress("BlockingMethodInNonBlockingContext") // URLEncoder.encode is CPU-only, not I/O blocking
val encodedNostrRequest = URLEncoder.encode(nostrRequest.toJson(), "utf-8")
url += "&nostr=$encodedNostrRequest"
}