Skip to content

Commit ffbaf0e

Browse files
vlazhdiasbruno
authored andcommitted
Wrap NODE_ENV conditional code in block
1 parent 5eccdb0 commit ffbaf0e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Diff for: src/helpers/focusManager.js

+8-7
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ export function resetState() {
1212

1313
/* istanbul ignore next */
1414
export function log() {
15-
if (process.env.NODE_ENV === "production") return;
16-
console.log("focusManager ----------");
17-
focusLaterElements.forEach(f => {
18-
const check = f || {};
19-
console.log(check.nodeName, check.className, check.id);
20-
});
21-
console.log("end focusManager ----------");
15+
if (process.env.NODE_ENV !== "production") {
16+
console.log("focusManager ----------");
17+
focusLaterElements.forEach(f => {
18+
const check = f || {};
19+
console.log(check.nodeName, check.className, check.id);
20+
});
21+
console.log("end focusManager ----------");
22+
}
2223
}
2324
/* eslint-enable no-console */
2425

0 commit comments

Comments
 (0)