Skip to content

Commit

Permalink
fixed linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Robinson committed Feb 1, 2021
1 parent f140a87 commit 9c910b2
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,20 +203,23 @@ module.exports = {
}

// Lookup associated Serverless functions
const allEntryFunctions = _.map(this.serverless.service.getAllFunctions().filter((funcName) => {
const allEntryFunctions = _.map(
_.filter(this.serverless.service.getAllFunctions(), funcName => {
const func = this.serverless.service.getFunction(funcName);
const runtime = func.runtime || this.serverless.service.provider.runtime || 'nodejs';
return runtime.match(/node/);
}), funcName => {
const func = this.serverless.service.getFunction(funcName);
const handler = func.handler;
const handlerFile = path.relative('.', getHandlerFile(handler));
return {
handlerFile,
funcName,
func
};
});
}),
funcName => {
const func = this.serverless.service.getFunction(funcName);
const handler = func.handler;
const handlerFile = path.relative('.', getHandlerFile(handler));
return {
handlerFile,
funcName,
func
};
}
);

this.entryFunctions = _.flatMap(entries, (value, key) => {
const entry = path.relative('.', value);
Expand Down

0 comments on commit 9c910b2

Please sign in to comment.