Skip to content

Commit

Permalink
refactor: Turn createScope() 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 80d63ec commit 2658769
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions model/src/test/kotlin/CompatibilityDependencyNavigatorTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ private fun createProject(
/**
* Create a [Scope] with the given [name] and a synthetic dependency.
*/
private fun createScope(name: String): Scope {
val dependencies = sortedSetOf(PackageReference(Identifier.EMPTY.copy(name = "dep$name")))
return Scope(name, dependencies)
}
private fun createScope(name: String) =
Scope(
name = name,
dependencies = sortedSetOf(PackageReference(Identifier.EMPTY.copy(name = "dep$name")))
)

0 comments on commit 2658769

Please sign in to comment.