Skip to content

Commit b4c4242

Browse files
acdlitejetoneza
authored andcommitted
Prettier :(
1 parent e90e4dc commit b4c4242

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

packages/react-reconciler/src/ReactFiberUnwindWork.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function NoopComponent() {
7878
function createRootErrorUpdate(
7979
fiber: Fiber,
8080
errorInfo: CapturedValue<mixed>,
81-
expirationTime: ExpirationTime
81+
expirationTime: ExpirationTime,
8282
): Update<mixed> {
8383
const update = createUpdate(expirationTime);
8484
// Unmount the root by rendering null.
@@ -97,7 +97,7 @@ function createRootErrorUpdate(
9797
function createClassErrorUpdate(
9898
fiber: Fiber,
9999
errorInfo: CapturedValue<mixed>,
100-
expirationTime: ExpirationTime
100+
expirationTime: ExpirationTime,
101101
): Update<mixed> {
102102
const update = createUpdate(expirationTime);
103103
update.tag = CaptureUpdate;
@@ -135,7 +135,7 @@ function createClassErrorUpdate(
135135
fiber.expirationTime === Sync,
136136
'%s: Error boundaries should implement getDerivedStateFromError(). ' +
137137
'In that method, return a state update to display an error message or fallback UI.',
138-
getComponentName(fiber.type) || 'Unknown'
138+
getComponentName(fiber.type) || 'Unknown',
139139
);
140140
}
141141
}
@@ -149,7 +149,7 @@ function throwException(
149149
returnFiber: Fiber,
150150
sourceFiber: Fiber,
151151
value: mixed,
152-
renderExpirationTime: ExpirationTime
152+
renderExpirationTime: ExpirationTime,
153153
) {
154154
// The source fiber did not complete.
155155
sourceFiber.effectTag |= Incomplete;
@@ -225,7 +225,7 @@ function throwException(
225225
root,
226226
workInProgress,
227227
sourceFiber,
228-
pingTime
228+
pingTime,
229229
);
230230
if (enableSchedulerTracing) {
231231
onResolveOrReject = Schedule_tracing_wrap(onResolveOrReject);
@@ -249,7 +249,7 @@ function throwException(
249249
sourceFiber.alternate,
250250
sourceFiber,
251251
nextChildren,
252-
renderExpirationTime
252+
renderExpirationTime,
253253
);
254254
sourceFiber.effectTag &= ~Incomplete;
255255

@@ -298,10 +298,10 @@ function throwException(
298298
// Difference.
299299
const earliestExpirationTime = findEarliestOutstandingPriorityLevel(
300300
root,
301-
renderExpirationTime
301+
renderExpirationTime,
302302
);
303303
const earliestExpirationTimeMs = expirationTimeToMs(
304-
earliestExpirationTime
304+
earliestExpirationTime,
305305
);
306306
startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
307307
}
@@ -325,7 +325,7 @@ function throwException(
325325
} while (workInProgress !== null);
326326
// No boundary was found. Fallthrough to error mode.
327327
value = new Error(
328-
'An update was suspended, but no placeholder UI was provided.'
328+
'An update was suspended, but no placeholder UI was provided.',
329329
);
330330
}
331331

@@ -344,7 +344,7 @@ function throwException(
344344
const update = createRootErrorUpdate(
345345
workInProgress,
346346
errorInfo,
347-
renderExpirationTime
347+
renderExpirationTime,
348348
);
349349
enqueueCapturedUpdate(workInProgress, update);
350350
return;
@@ -368,7 +368,7 @@ function throwException(
368368
const update = createClassErrorUpdate(
369369
workInProgress,
370370
errorInfo,
371-
renderExpirationTime
371+
renderExpirationTime,
372372
);
373373
enqueueCapturedUpdate(workInProgress, update);
374374
return;
@@ -383,7 +383,7 @@ function throwException(
383383

384384
function unwindWork(
385385
workInProgress: Fiber,
386-
renderExpirationTime: ExpirationTime
386+
renderExpirationTime: ExpirationTime,
387387
) {
388388
switch (workInProgress.tag) {
389389
case ClassComponent: {
@@ -417,7 +417,7 @@ function unwindWork(
417417
invariant(
418418
(effectTag & DidCapture) === NoEffect,
419419
'The root failed to unmount after an error. This is likely a bug in ' +
420-
'React. Please file an issue.'
420+
'React. Please file an issue.',
421421
);
422422
workInProgress.effectTag = (effectTag & ~ShouldCapture) | DidCapture;
423423
return workInProgress;

0 commit comments

Comments
 (0)