Skip to content

Commit

Permalink
PackageCurationTest: Simplify code by using Identifier.EMPTY
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Oct 20, 2022
1 parent f8c4a41 commit f21cf16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/src/test/kotlin/PackageCurationTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ class PackageCurationTest : WordSpec({
private fun packageCurationForVersion(version: String) =
PackageCuration(identifierForVersion(version), PackageCurationData())
private fun identifierForVersion(version: String) = Identifier(type = "", namespace = "", name = "", version = version)
private fun identifierForVersion(version: String) = Identifier.EMPTY.copy(version = version)
private fun declaredLicenseMappingCuration(id: Identifier, vararg entries: Pair<String, String>): PackageCuration =
PackageCuration(
Expand Down

0 comments on commit f21cf16

Please sign in to comment.