From 30cb7dd1c31409c6d50f99945b277c32e4594d95 Mon Sep 17 00:00:00 2001 From: Frank Viernau Date: Tue, 16 Jul 2024 23:35:53 +0200 Subject: [PATCH] chore(cocoapods): Fix-up an unnecessary `mapNotNull` This is a fix-up for ed9ce11. Signed-off-by: Frank Viernau --- plugins/package-managers/cocoapods/src/main/kotlin/Lockfile.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/package-managers/cocoapods/src/main/kotlin/Lockfile.kt b/plugins/package-managers/cocoapods/src/main/kotlin/Lockfile.kt index 26b085111d132..27206dd0dc1bc 100644 --- a/plugins/package-managers/cocoapods/src/main/kotlin/Lockfile.kt +++ b/plugins/package-managers/cocoapods/src/main/kotlin/Lockfile.kt @@ -58,7 +58,7 @@ internal fun String.parseLockfile(): Lockfile { val root = Yaml.default.parseToYamlNode(this).yamlMap val pods = root.get("PODS")?.items.orEmpty().map { it.toPod() } - val checkoutOptions = root.get("CHECKOUT OPTIONS")?.entries.orEmpty().mapNotNull { + val checkoutOptions = root.get("CHECKOUT OPTIONS")?.entries.orEmpty().map { val name = it.key.content val node = it.value.yamlMap