Skip to content

Commit a159e85

Browse files
committed
removed inline boolean checks for methods
1 parent f992d54 commit a159e85

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/isomorphic/classic/element/ReactElementValidator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function validateExplicitKey(element, parentType) {
124124
'%s%s See https://fb.me/react-warning-keys for more information.%s',
125125
currentComponentErrorInfo,
126126
childOwner,
127-
getCurrentStackAddendum && getCurrentStackAddendum(element)
127+
getCurrentStackAddendum(element)
128128
);
129129
}
130130

@@ -227,7 +227,7 @@ var ReactElementValidator = {
227227
info += getDeclarationErrorAddendum();
228228
}
229229

230-
info += getCurrentStackAddendum && getCurrentStackAddendum();
230+
info += getCurrentStackAddendum();
231231

232232
warning(
233233
false,

src/renderers/dom/shared/hooks/ReactDOMInvalidARIAHook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if (__DEV__) {
2828
function getStackAddendum(debugID) {
2929
if (debugID != null) {
3030
// This can only happen on Stack
31-
return getStackAddendumByID && getStackAddendumByID(debugID);
31+
return getStackAddendumByID(debugID);
3232
} else {
3333
// This can only happen on Fiber
3434
return ReactDebugCurrentFiber.getCurrentFiberStackAddendum();

src/renderers/dom/shared/hooks/ReactDOMNullInputValuePropHook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var didWarnValueNull = false;
2525
function getStackAddendum(debugID) {
2626
if (debugID != null) {
2727
// This can only happen on Stack
28-
return getStackAddendumByID && getStackAddendumByID(debugID);
28+
return getStackAddendumByID(debugID);
2929
} else {
3030
// This can only happen on Fiber
3131
return ReactDebugCurrentFiber.getCurrentFiberStackAddendum();

0 commit comments

Comments
 (0)