Skip to content

Commit

Permalink
Remove unnecessary null handling
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Jan 30, 2024
1 parent 175138d commit d80f21e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ fun Project.findDependencies(): List<Library> {
(buildscript.configurations + configurations).flatMapTo(allDependencies) { configuration ->
configuration.allDependencies
.filterIsInstance<ExternalDependency>()
.mapNotNull { dependency ->
.map { dependency ->
Library(
group = dependency.group ?: return@mapNotNull null,
group = dependency.group,
module = dependency.name,
version = dependency.version
)
Expand Down

0 comments on commit d80f21e

Please sign in to comment.