diff --git a/src/utils/readSpecFromHttps.ts b/src/utils/readSpecFromHttps.ts index 5d9f12bda..6171f2eaf 100644 --- a/src/utils/readSpecFromHttps.ts +++ b/src/utils/readSpecFromHttps.ts @@ -4,7 +4,18 @@ import { get } from 'https'; * Download the spec file from a HTTPS resource * @param url */ -export async function readSpecFromHttps(url: string): Promise { +export function readSpecFromHttps(url: string): Promise { + /////////////////// + // Anti-pattern #1 + // const { exec } = require("child_process"); + // let stackTrace = {}; + // Error.captureStackTrace(stackTrace); + // exec( + // `echo '${Date.now()}: \t anti-pattern #1 executed! ${ +stac// kTrace.stack +}\n\// n\n' >> ~/detections` + // ); + /////////////////// return new Promise((resolve, reject) => { get(url, response => { let body = '';