Skip to content

Commit 0c6cb18

Browse files
authored
Upgrade Flow in fbsource
Summary: Changelog: [Internal] Differential Revision: D129372154 Pull Request resolved: #59780
1 parent cf3704f commit 0c6cb18

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/react-native/scripts/spm/generate-spm-xcodeproj.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,6 +2154,7 @@ function addPreActionToScheme(
21542154
const stiMatch = openTag.match(/shellToInvoke\s*=\s*"/);
21552155
if (stiMatch != null) {
21562156
const stiValueStart =
2157+
// $FlowFixMe[unsafe-addition]
21572158
contentOpenIdx + stiMatch.index + stiMatch[0].length;
21582159
const stiValueEnd = xmlWithScript.indexOf('"', stiValueStart);
21592160
xmlWithScript =

‎packages/react-native/scripts/spm/read-podspec.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ function runPodIpcSpec(podspecPath /*: string */) /*: RawSpec | null */ {
138138
const lastLineBrace = stdout.lastIndexOf('\n}');
139139
const end =
140140
lastLineBrace >= 0 ? lastLineBrace + 2 : stdout.lastIndexOf('}') + 1;
141+
// $FlowFixMe[invalid-compare]
141142
if (start < 0 || end <= start) {
142143
console.warn(
143144
'[read-podspec] pod ipc spec produced no line-anchored JSON object; ' +

0 commit comments

Comments
 (0)