Skip to content

Commit 87c367b

Browse files
committed
fixed unneccessary __DEV__ checks
1 parent 0378b46 commit 87c367b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/react/src/jsx/ReactJSXElement.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,6 @@ export function jsxProdSignatureRunningInDevWithDynamicChildren(
382382
if (__DEV__) {
383383
const isStaticChildren = false;
384384
const trackActualOwner =
385-
__DEV__ &&
386385
ReactSharedInternals.recentlyCreatedOwnerStacks++ < ownerStackLimit;
387386
return jsxDEVImpl(
388387
type,
@@ -391,14 +390,12 @@ export function jsxProdSignatureRunningInDevWithDynamicChildren(
391390
isStaticChildren,
392391
source,
393392
self,
394-
__DEV__ &&
395-
(trackActualOwner
393+
trackActualOwner
396394
? Error('react-stack-top-frame')
397-
: unknownOwnerDebugStack),
398-
__DEV__ &&
399-
(trackActualOwner
395+
: unknownOwnerDebugStack,
396+
trackActualOwner
400397
? createTask(getTaskName(type))
401-
: unknownOwnerDebugTask),
398+
: unknownOwnerDebugTask,
402399
);
403400
}
404401
}

0 commit comments

Comments
 (0)