Skip to content

Commit f8bc79f

Browse files
committed
fix lint errors
1 parent 818a261 commit f8bc79f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/react-reconciler/src/ReactFiberCommitWork.new.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,7 @@ import {
162162
TransitionStart,
163163
TransitionComplete,
164164
} from './ReactFiberTracingMarkerComponent.new';
165-
import {
166-
getTransitionsForLanes,
167-
clearTransitionsForLanes,
168-
} from './ReactFiberLane.new';
165+
import {clearTransitionsForLanes} from './ReactFiberLane.new';
169166

170167
let didWarnAboutUndefinedSnapshotBeforeUpdate: Set<mixed> | null = null;
171168
if (__DEV__) {

packages/react-reconciler/src/ReactFiberCompleteWork.new.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,15 +1573,15 @@ function completeWork(
15731573
}
15741574
popCacheProvider(workInProgress, cache);
15751575
bubbleProperties(workInProgress);
1576-
return null;
15771576
}
1577+
return null;
15781578
}
15791579
case TracingMarkerComponent: {
15801580
if (enableTransitionTracing) {
15811581
// Bubble subtree flags before so we can set the flag property
15821582
bubbleProperties(workInProgress);
1583-
return null;
15841583
}
1584+
return null;
15851585
}
15861586
}
15871587

packages/react-reconciler/src/ReactFiberLane.new.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,8 @@ export function addTransitionToLanesMap(
816816
} else {
817817
if (__DEV__) {
818818
console.error(
819-
'React Bug: transition lanes accessed out of bounds index: ' + index,
819+
'React Bug: transition lanes accessed out of bounds index: %s',
820+
index.toString(),
820821
);
821822
}
822823
}
@@ -843,7 +844,8 @@ export function getTransitionsForLanes(
843844
} else {
844845
if (__DEV__) {
845846
console.error(
846-
'React Bug: transition lanes accessed out of bounds index: ' + index,
847+
'React Bug: transition lanes accessed out of bounds index: %s',
848+
index.toString(),
847849
);
848850
}
849851
}
@@ -869,7 +871,8 @@ export function clearTransitionsForLanes(root: FiberRoot, lanes: Lane | Lanes) {
869871
} else {
870872
if (__DEV__) {
871873
console.error(
872-
'React Bug: transition lanes accessed out of bounds index: ' + index,
874+
'React Bug: transition lanes accessed out of bounds index: %s',
875+
index.toString(),
873876
);
874877
}
875878
}

0 commit comments

Comments
 (0)