Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

style

TJ Holowaychukab8bdcf71d22
diff --git a/lib/reporters/html.js b/lib/reporters/html.js
index 279253a0..89e7da1a 100644
--- a/lib/reporters/html.js
+++ b/lib/reporters/html.js
@@ -175,9 +175,7 @@ function HTML(runner, root) {
}
// Don't call .appendChild if #mocha-report was already .shift()'ed off the stack.
- if (stack[0]) {
- stack[0].appendChild(el);
- }
+ if (stack[0]) stack[0].appendChild(el);
});
}