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 <sschuberth@gmail.com>
  • Loading branch information
sschuberth committed Oct 19, 2022
1 parent 43b5578 commit fee548f
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 fee548f

Please sign in to comment.