Skip to content

Commit 1499ea0

Browse files
committed
refactor: readability
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent d9e5b76 commit 1499ea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/cyclonedx-yarn-cli.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ for (const p of [
3333
]) {
3434
try {
3535
pp = realpathSync(join(__dirname, '..', ...p))
36-
break
3736
} catch {
38-
/* pass */
37+
continue
3938
}
39+
break
4040
}
4141
if (!pp) {
4242
throw Error('missing plugin')

0 commit comments

Comments
 (0)