Skip to content

Commit

Permalink
refactor(cocoapods): Move an orEmpty() a couple of lines upwards
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 Jul 16, 2024
1 parent 2df46c6 commit 35e048f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private fun parseLockfile(podfileLock: File): LockfileData {
sourceArtifact = RemoteArtifact.EMPTY,
vcs = VcsInfo(VcsType.GIT, url, revision)
)
}?.toMap()
}.orEmpty().toMap()

fun createPackageReference(name: String): PackageReference =
PackageReference(
Expand All @@ -308,5 +308,5 @@ private fun parseLockfile(podfileLock: File): LockfileData {
createPackageReference(name)
}

return LockfileData(dependencies, externalSources.orEmpty())
return LockfileData(dependencies, externalSources)
}

0 comments on commit 35e048f

Please sign in to comment.