Skip to content

Commit

Permalink
Prettier :(
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed Oct 19, 2018
1 parent 98bab66 commit 4dd772a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions packages/react-reconciler/src/ReactFiberUnwindWork.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function NoopComponent() {
function createRootErrorUpdate(
fiber: Fiber,
errorInfo: CapturedValue<mixed>,
expirationTime: ExpirationTime
expirationTime: ExpirationTime,
): Update<mixed> {
const update = createUpdate(expirationTime);
// Unmount the root by rendering null.
Expand All @@ -97,7 +97,7 @@ function createRootErrorUpdate(
function createClassErrorUpdate(
fiber: Fiber,
errorInfo: CapturedValue<mixed>,
expirationTime: ExpirationTime
expirationTime: ExpirationTime,
): Update<mixed> {
const update = createUpdate(expirationTime);
update.tag = CaptureUpdate;
Expand Down Expand Up @@ -135,7 +135,7 @@ function createClassErrorUpdate(
fiber.expirationTime === Sync,
'%s: Error boundaries should implement getDerivedStateFromError(). ' +
'In that method, return a state update to display an error message or fallback UI.',
getComponentName(fiber.type) || 'Unknown'
getComponentName(fiber.type) || 'Unknown',
);
}
}
Expand All @@ -149,7 +149,7 @@ function throwException(
returnFiber: Fiber,
sourceFiber: Fiber,
value: mixed,
renderExpirationTime: ExpirationTime
renderExpirationTime: ExpirationTime,
) {
// The source fiber did not complete.
sourceFiber.effectTag |= Incomplete;
Expand Down Expand Up @@ -225,7 +225,7 @@ function throwException(
root,
workInProgress,
sourceFiber,
pingTime
pingTime,
);
if (enableSchedulerTracing) {
onResolveOrReject = Schedule_tracing_wrap(onResolveOrReject);
Expand All @@ -249,7 +249,7 @@ function throwException(
sourceFiber.alternate,
sourceFiber,
nextChildren,
renderExpirationTime
renderExpirationTime,
);
sourceFiber.effectTag &= ~Incomplete;

Expand Down Expand Up @@ -298,10 +298,10 @@ function throwException(
// Difference.
const earliestExpirationTime = findEarliestOutstandingPriorityLevel(
root,
renderExpirationTime
renderExpirationTime,
);
const earliestExpirationTimeMs = expirationTimeToMs(
earliestExpirationTime
earliestExpirationTime,
);
startTimeMs = earliestExpirationTimeMs - LOW_PRIORITY_EXPIRATION;
}
Expand All @@ -325,7 +325,7 @@ function throwException(
} while (workInProgress !== null);
// No boundary was found. Fallthrough to error mode.
value = new Error(
'An update was suspended, but no placeholder UI was provided.'
'An update was suspended, but no placeholder UI was provided.',
);
}

Expand All @@ -344,7 +344,7 @@ function throwException(
const update = createRootErrorUpdate(
workInProgress,
errorInfo,
renderExpirationTime
renderExpirationTime,
);
enqueueCapturedUpdate(workInProgress, update);
return;
Expand All @@ -368,7 +368,7 @@ function throwException(
const update = createClassErrorUpdate(
workInProgress,
errorInfo,
renderExpirationTime
renderExpirationTime,
);
enqueueCapturedUpdate(workInProgress, update);
return;
Expand All @@ -383,7 +383,7 @@ function throwException(

function unwindWork(
workInProgress: Fiber,
renderExpirationTime: ExpirationTime
renderExpirationTime: ExpirationTime,
) {
switch (workInProgress.tag) {
case ClassComponent: {
Expand Down Expand Up @@ -417,7 +417,7 @@ function unwindWork(
invariant(
(effectTag & DidCapture) === NoEffect,
'The root failed to unmount after an error. This is likely a bug in ' +
'React. Please file an issue.'
'React. Please file an issue.',
);
workInProgress.effectTag = (effectTag & ~ShouldCapture) | DidCapture;
return workInProgress;
Expand Down

0 comments on commit 4dd772a

Please sign in to comment.