Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Turn Fututre into Promise to be evaluated
Browse files Browse the repository at this point in the history
  • Loading branch information
ludat committed Nov 9, 2017
1 parent dddba86 commit 12e9ba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/neutrino-middleware-eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ module.exports = (neutrino, opts = {}) => {
const formatted = formatter(report.results);

return errors.length ? Future.reject(formatted) : Future.of(formatted);
});
})
.promise();
});
};

0 comments on commit 12e9ba0

Please sign in to comment.