From 5baba1e8c256c0335697fb5facde78d0e9cf00a4 Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Fri, 25 Oct 2024 12:41:10 +0530 Subject: [PATCH] uncomments an error throwing check --- v2/src/plugins/codeTypeChecking/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/src/plugins/codeTypeChecking/index.js b/v2/src/plugins/codeTypeChecking/index.js index f911f6563..1cc0fbf77 100644 --- a/v2/src/plugins/codeTypeChecking/index.js +++ b/v2/src/plugins/codeTypeChecking/index.js @@ -574,7 +574,7 @@ async function assertThatUserIsNotRemovedDocsVariableByMistake(path, codeSnippet if (data.includes("THIS FILE CONTAINS DOCS VARIABLES. PLEASE DO NOT FORGET TO USE THOSE") && !codeSnippet.includes("THIS FILE CONTAINS DOCS VARIABLES. PLEASE DO NOT FORGET TO USE THOSE")) { let message = "DID YOU FORGET TO USE DOCS VARIABLES IN A RECENT CODE CHANGE? PLEASE CHECK" + "\n\nIf you think this error is unrelated to your changes, try deleting the `snippets` folder for all languages and run again.\n\nThe file path is: " + path - // return rej(new Error(message)); + return rej(new Error(message)); } } res();