Skip to content

Commit

Permalink
fix(core/paths): doesn't throw when root paths retrieval fails and it…
Browse files Browse the repository at this point in the history
…'s not explicitly defined in op
  • Loading branch information
rafamel committed Apr 25, 2019
1 parent e403042 commit a7261a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/paths/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function getRootPaths(directories: {
: path.join(self, '../');

try {
return getPaths({ directory }, Boolean(root));
return await getPaths({ directory }, Boolean(root));
} catch (err) {
if (!root) return null;
throw wrap.ensure(err, {
Expand Down

0 comments on commit a7261a4

Please sign in to comment.