Skip to content

Commit

Permalink
Update packages/cli-platform-apple/src/tools/pods.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Riccardo Cipolleschi <[email protected]>
  • Loading branch information
szymonrybczak and cipolleschi committed Aug 31, 2024
1 parent 3be0257 commit bfdfac9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/cli-platform-apple/src/tools/pods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,9 @@ async function getChecksum(podfileLockPath: string) {

lines = lines.reverse();

for (const line of lines) {
if (line.includes('PODFILE CHECKSUM')) {
return line.split(': ')[1];
}
}
return lines
.filter((line) => line.includes('PODFILE CHECKSUM'))[0]
.split(': ')[1]

return undefined;
}
Expand Down

0 comments on commit bfdfac9

Please sign in to comment.