Skip to content

Commit d6c3ab7

Browse files
committed
Fix broken continue call
1 parent ba66cf6 commit d6c3ab7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function runForPath(path, options = {}) {
5959
let componentPaths = await globby('app/components/**/*.js', { cwd: path });
6060
debug('componentPaths = %O', componentPaths);
6161

62-
for (let componentPath of componentPaths) {
62+
files: for (let componentPath of componentPaths) {
6363
let dimPath = chalk.dim(componentPath);
6464

6565
let source = fs.readFileSync(componentPath, 'utf8');
@@ -115,11 +115,11 @@ async function runForPath(path, options = {}) {
115115

116116
// skip tagless components (silent)
117117
if (tagName === '') {
118-
debug(`${componentPath}: tagName detected: %o -> skip`, tagName);
118+
debug(`${componentPath}: tagName: %o -> skip`, tagName);
119119
continue;
120120
}
121121

122-
debug(`${componentPath}: tagName detected: %o`, tagName);
122+
debug(`${componentPath}: tagName: %o`, tagName);
123123

124124
// skip components that use `this.element`
125125
let thisElementPaths = j(objectArg).find(j.MemberExpression, {
@@ -142,7 +142,7 @@ async function runForPath(path, options = {}) {
142142
`${dimPath}: Using \`${methodName}()\` is not supported in tagless components`
143143
)
144144
);
145-
continue;
145+
continue files;
146146
}
147147
}
148148

0 commit comments

Comments
 (0)