Skip to content

Commit 58a0652

Browse files
Update packages/cli-platform-apple/src/tools/pods.ts
Co-authored-by: Riccardo Cipolleschi <[email protected]>
1 parent 0cb190f commit 58a0652

File tree

1 file changed

+3
-5
lines changed
  • packages/cli-platform-apple/src/tools

1 file changed

+3
-5
lines changed

packages/cli-platform-apple/src/tools/pods.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,9 @@ async function getChecksum(podfileLockPath: string) {
8080

8181
lines = lines.reverse();
8282

83-
for (const line of lines) {
84-
if (line.includes('PODFILE CHECKSUM')) {
85-
return line.split(': ')[1];
86-
}
87-
}
83+
return lines
84+
.filter((line) => line.includes('PODFILE CHECKSUM'))[0]
85+
.split(': ')[1]
8886

8987
return undefined;
9088
}

0 commit comments

Comments
 (0)