diff --git a/plugins/package-managers/conan/src/main/kotlin/Conan.kt b/plugins/package-managers/conan/src/main/kotlin/Conan.kt index 20f853a6a5db0..01c0ccbc57270 100644 --- a/plugins/package-managers/conan/src/main/kotlin/Conan.kt +++ b/plugins/package-managers/conan/src/main/kotlin/Conan.kt @@ -392,8 +392,8 @@ class Conan( val artifactEntry = conanData.getValue("sources") val url = artifactEntry["url"].let { urlNode -> - (urlNode.takeIf { it.isTextual } ?: urlNode.first()).textValueOrEmpty() - } + urlNode.takeIf { it.isTextual } ?: urlNode.first() + }.textValueOrEmpty() val hashValue = artifactEntry["sha256"].textValueOrEmpty() val hash = Hash.create(hashValue, HashAlgorithm.SHA256.name)