Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern committed Jul 9, 2019
1 parent 1ab8d66 commit efaa806
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/emulator/functionsEmulatorRuntime.ts
Expand Up @@ -431,13 +431,13 @@ async function InitializeFirebaseFunctionsStubs(frb: FunctionsRuntimeBundle): Pr
}

const httpsProvider = require(httpsProviderResolution);
const _onRequestWithOptions = httpsProvider[methodName];
const requestWithOptions = httpsProvider[methodName];

httpsProvider[methodName] = (
handler: (req: Request, resp: Response) => void,
opts: DeploymentOptions
) => {
const cf = _onRequestWithOptions(handler, opts);
const cf = requestWithOptions(handler, opts);
cf.__emulator_func = handler;
return cf;
};
Expand Down

0 comments on commit efaa806

Please sign in to comment.