From f7ff51afbe11d0716ca2dca1c5d58229cafae3bf Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Wed, 17 Jul 2024 23:08:45 +0200 Subject: [PATCH] chore(conan): Replace a `get()` with an indexing operator Signed-off-by: Frank Viernau --- plugins/package-managers/conan/src/main/kotlin/Conan.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/package-managers/conan/src/main/kotlin/Conan.kt b/plugins/package-managers/conan/src/main/kotlin/Conan.kt index 923b4590aa7e1..f9f401db87231 100644 --- a/plugins/package-managers/conan/src/main/kotlin/Conan.kt +++ b/plugins/package-managers/conan/src/main/kotlin/Conan.kt @@ -328,7 +328,7 @@ class Conan( Json.parseToJsonElement(jsonFile.readText()).jsonObject.also { jsonFile.parentFile.safeDeleteRecursively(force = true) } - }.get(field)?.jsonPrimitive?.content.orEmpty() + }[field]?.jsonPrimitive?.content.orEmpty() /** * Find the [PackageInfo] that represents the project defined in the definition file.