Skip to content

Commit

Permalink
refactor: Turn createDependency() into an expression function
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed May 17, 2023
1 parent 2658769 commit 7807e14
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions model/src/test/kotlin/utils/DependencyGraphBuilderTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,11 @@ private fun createDependency(
artifact: String,
version: String,
dependencies: List<PackageReference> = emptyList()
): PackageReference {
val id = Identifier("test", group, artifact, version)
return PackageReference(id, dependencies = dependencies.toSortedSet())
}
) =
PackageReference(
id = Identifier("test", group, artifact, version),
dependencies = dependencies.toSortedSet()
)

/**
* Return the package references from the given [scopes] associated with the scope with the given [scopeName].
Expand Down

0 comments on commit 7807e14

Please sign in to comment.