Skip to content

Commit 6d7208c

Browse files
committed
Merge pull request #49 from xjamundx/patch-2
Fix: create-test tool not complaining properly
2 parents 47d4bff + f703479 commit 6d7208c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/create-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var rawCode = shelljs.cat(codeFilename),
6969
// pop off first code, it will be an empty string
7070
code.shift();
7171

72-
if (sections.length !== code.length) {
72+
if (!sections || sections.length !== code.length) {
7373
console.error("Missing a /*!espree-section: name*/ in the code file.");
7474
process.exit(1);
7575
}

0 commit comments

Comments
 (0)