break from the loop instead of returning

This commit is contained in:
Michel Kaporin 2017-06-07 17:00:08 +02:00
parent e019e2484b
commit 96869f5742

View file

@ -42,7 +42,7 @@ export class SpectronApplication {
for (let arg of args) {
if (arg.startsWith('--extensions-dir')) {
extensionDirIsSet = true;
return;
break;
}
}
if (!extensionDirIsSet) {