Skip to content

Commit

Permalink
chore(conan): Replace a get() with an indexing operator
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau authored and sschuberth committed Jul 18, 2024
1 parent 802dfa8 commit f7ff51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/package-managers/conan/src/main/kotlin/Conan.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f7ff51a

Please sign in to comment.