Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ottomata committed Jul 31, 2020
1 parent 46a2bdb commit 593eaae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/util.js
Expand Up @@ -263,7 +263,7 @@ function initAndLogRequest(req, app) {
* with the extra paths at the end of module.paths.
* module.paths will be unmodified when this function returns.
* @param {string} m
* @param {Array<string>} List extra paths to search for module.
* @param {Array<string>} paths list of extra paths to search for module.
* @return {any}
*/
function requireRelative(m, paths = [process.cwd()]) {
Expand Down
2 changes: 1 addition & 1 deletion routes/events.js
Expand Up @@ -142,7 +142,7 @@ module.exports = async(appObj) => {

// Search in cwd and service-runner app_base_path (the path where EventGate's app.js is)
// as well as normal module.paths for eventgate_factory_module.
// This is so that EventGate can be used as a library dependency with custom modules.
// This is so that EventGate can be used as a library dependency with custom modules.
const pathsToSearch = [process.cwd(), app.conf.app_base_path];
const eventGate = await requireRelative(eventGateFactoryModule, pathsToSearch).factory(
app.conf, app.logger._logger, app.metrics, router
Expand Down

0 comments on commit 593eaae

Please sign in to comment.