Skip to content

Commit 8685b5d

Browse files
committed
chore(spdx-reporter): Inline input and outputDir
Make the code more compact. Signed-off-by: Frank Viernau <frank_viernau@epam.com>
1 parent f9bab98 commit 8685b5d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

plugins/reporters/spdx/src/funTest/kotlin/SpdxDocumentReporterFunTest.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,6 @@ private fun TestConfiguration.generateReport(
132132
spdxVersion: String,
133133
fileInformationEnabled: Boolean = true
134134
): String {
135-
val input = ReporterInput(ortResult)
136-
137-
val outputDir = tempdir()
138-
139135
val config = SpdxDocumentReporterConfig(
140136
spdxVersion = spdxVersion,
141137
creationInfoComment = "some creation info comment",
@@ -148,7 +144,7 @@ private fun TestConfiguration.generateReport(
148144
)
149145

150146
return SpdxDocumentReporter(config = config)
151-
.generateReport(input, outputDir)
147+
.generateReport(input = ReporterInput(ortResult), outputDir = tempdir())
152148
.single()
153149
.getOrThrow()
154150
.readText()

0 commit comments

Comments
 (0)