Skip to content

Commit f5d404c

Browse files
vlazhdiasbruno
authored andcommitted
Wrap NODE_ENV conditional code in block
1 parent 22e80e7 commit f5d404c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: src/helpers/ariaAppHider.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ export function resetState() {
2222

2323
/* istanbul ignore next */
2424
export function log() {
25-
if (process.env.NODE_ENV === "production") return;
26-
const check = globalElement || {};
27-
console.log("ariaAppHider ----------");
28-
console.log(check.nodeName, check.className, check.id);
29-
console.log("end ariaAppHider ----------");
25+
if (process.env.NODE_ENV !== "production") {
26+
var check = globalElement || {};
27+
console.log("ariaAppHider ----------");
28+
console.log(check.nodeName, check.className, check.id);
29+
console.log("end ariaAppHider ----------");
30+
}
3031
}
3132
/* eslint-enable no-console */
3233

0 commit comments

Comments
 (0)