Skip to content

Commit

Permalink
fix: remove more unused async / awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro committed Feb 9, 2022
1 parent ac23516 commit 6e72122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/functions/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ const createHandler = function (options) {
}
}

const getFunctionsServer = async function (options) {
const getFunctionsServer = function (options) {
const { buildersPrefix = '', functionsPrefix = '', functionsRegistry, siteUrl } = options
// performance optimization, load express on demand
// eslint-disable-next-line node/global-require
Expand Down Expand Up @@ -262,7 +262,7 @@ const startFunctionsServer = async (options) => {

await functionsRegistry.scan(functionsDirectories)

const server = await getFunctionsServer(Object.assign(options, { functionsRegistry }))
const server = getFunctionsServer(Object.assign(options, { functionsRegistry }))

await startWebServer({ server, settings })
}
Expand Down

0 comments on commit 6e72122

Please sign in to comment.