Skip to content

Commit

Permalink
refactor(static-html): Shorten a variable name
Browse files Browse the repository at this point in the history
Align the variable name with `ProjectTable.rows`.

Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed May 7, 2024
1 parent 62b6318 commit c0471df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private fun getProjectTable(input: ReporterInput, project: Project): ProjectTabl
val scopesForId = input.ortResult.getScopesForDependencies(project)
val ids = input.ortResult.dependencyNavigator.projectDependencies(project) + project.id

val tableRows = ids.map { id ->
val rows = ids.map { id ->
val resolvedLicenseInfo = input.licenseInfoResolver.resolveLicenseInfo(id)

val concludedLicense = resolvedLicenseInfo.licenseInfo.concludedLicenseInfo.concludedLicense
Expand Down Expand Up @@ -167,7 +167,7 @@ private fun getProjectTable(input: ReporterInput, project: Project): ProjectTabl
}

return ProjectTable(
rows = tableRows.sortedWith(compareByDescending<Row> { it.id == project.id }.thenBy { it.id }),
rows = rows.sortedWith(compareByDescending<Row> { it.id == project.id }.thenBy { it.id }),
fullDefinitionFilePath = input.ortResult.getDefinitionFilePathRelativeToAnalyzerRoot(project),
pathExcludes = input.ortResult.getExcludes().findPathExcludes(project, input.ortResult)
)
Expand Down

0 comments on commit c0471df

Please sign in to comment.