Skip to content

Commit

Permalink
refactor(bower): Inline two variables
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Jul 23, 2024
1 parent 95fe15b commit cf40585
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions plugins/package-managers/bower/src/main/kotlin/Bower.kt
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,13 @@ private fun parseDependencyTree(
// information.
// See https://github.com/bower/bower/blob/6bc778d/lib/core/Manager.js#L557 and below.
val childInfo = info.dependencies[name] ?: packageInfoForName.getValue(name)
val childScope = SCOPE_NAME_DEPENDENCIES
val childDependencies = parseDependencyTree(childInfo, childScope, packageInfoForName)

PackageReference(
id = childInfo.toId(),
dependencies = childDependencies
dependencies = parseDependencyTree(
info = childInfo,
scopeName = SCOPE_NAME_DEPENDENCIES,
packageInfoForName = packageInfoForName
)
)
}

0 comments on commit cf40585

Please sign in to comment.