mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Linter issue
This commit is contained in:
@@ -17,6 +17,7 @@ if (process.env.NODE_ENV === "production") {
|
||||
export const registerBddNockRouter = async (server: FastifyZodProvider) => {
|
||||
const appCfg = getConfig();
|
||||
const importNock = async () => {
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
const { default: nock } = await import("nock");
|
||||
return nock;
|
||||
};
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export const registerBddNockRouter = async (server: FastifyZodProvider) => {
|
||||
export const registerBddNockRouter = async () => {
|
||||
throw new Error("BDD Nock should not be enabled in production");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user