From 5830c4093da0d7240e10dbf86bcec83700090754 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Thu, 18 Jul 2024 15:16:56 +0200 Subject: [PATCH] refactor(bower): Simplify a non-null check Signed-off-by: Frank Viernau --- plugins/package-managers/bower/src/main/kotlin/Bower.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/package-managers/bower/src/main/kotlin/Bower.kt b/plugins/package-managers/bower/src/main/kotlin/Bower.kt index b925c62299a35..1857afcbfd95a 100644 --- a/plugins/package-managers/bower/src/main/kotlin/Bower.kt +++ b/plugins/package-managers/bower/src/main/kotlin/Bower.kt @@ -228,7 +228,7 @@ private fun parseDependencyTree( // about the subtree rooted at the parent from that other node containing the full dependency // information. // See https://github.com/bower/bower/blob/6bc778d/lib/core/Manager.js#L557 and below. - val alternativeNode = checkNotNull(alternativeNodes[info.key]) + val alternativeNode = alternativeNodes.getValue(info.key!!) return parseDependencyTree(alternativeNode, scopeName, alternativeNodes) }