From cdd399345078b06ba7102fec0b322c47750e43c9 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Fri, 24 Nov 2023 08:07:06 +0100 Subject: [PATCH] style(reporter): Use a shorter name for `packageforId` Signed-off-by: Frank Viernau --- .../static-html/src/main/kotlin/ReportTableModelMapper.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt b/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt index c8b40e8a93dce..2364e12df4d86 100644 --- a/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt +++ b/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt @@ -80,12 +80,12 @@ internal object ReportTableModelMapper { it.summary.issues } - val packageForId = ortResult.getPackageOrProject(id)?.metadata + val pkg = ortResult.getPackageOrProject(id)?.metadata val row = DependencyRow( id = id, - sourceArtifact = packageForId?.sourceArtifact.orEmpty(), - vcsInfo = packageForId?.vcsProcessed.orEmpty(), + sourceArtifact = pkg?.sourceArtifact.orEmpty(), + vcsInfo = pkg?.vcsProcessed.orEmpty(), scopes = scopesForDependencies[id].orEmpty().toSortedMap(), concludedLicense = concludedLicense, declaredLicenses = declaredLicenses,