From d80f21ed721eb41882a13bddf9e30b8fedb34111 Mon Sep 17 00:00:00 2001 From: Louis CAD Date: Tue, 30 Jan 2024 20:59:52 +0100 Subject: [PATCH] Remove unnecessary null handling --- .../refreshVersions/core/internal/DependencyNotations.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/internal/DependencyNotations.kt b/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/internal/DependencyNotations.kt index 8160fa39c..3b70bc7d8 100644 --- a/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/internal/DependencyNotations.kt +++ b/plugins/core/src/main/kotlin/de/fayard/refreshVersions/core/internal/DependencyNotations.kt @@ -57,9 +57,9 @@ fun Project.findDependencies(): List { (buildscript.configurations + configurations).flatMapTo(allDependencies) { configuration -> configuration.allDependencies .filterIsInstance() - .mapNotNull { dependency -> + .map { dependency -> Library( - group = dependency.group ?: return@mapNotNull null, + group = dependency.group, module = dependency.name, version = dependency.version )