Skip to content

Commit

Permalink
refactor(reporter): Simplify obtaining a package or project
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <frank_viernau@epam.com>
  • Loading branch information
fviernau committed Nov 24, 2023
1 parent 1be48b4 commit 1d2d88a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ internal object ReportTableModelMapper {
it.summary.issues
}

val packageForId = ortResult.getPackage(id)?.metadata ?: ortResult.getProject(id)?.toPackage()
val packageForId = ortResult.getPackageOrProject(id)?.metadata

val row = DependencyRow(
id = id,
Expand Down

0 comments on commit 1d2d88a

Please sign in to comment.