Skip to content

Commit

Permalink
refactor(bower): Simplify a non-null check
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Jul 18, 2024
1 parent af21988 commit 5830c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/package-managers/bower/src/main/kotlin/Bower.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5830c40

Please sign in to comment.