From b760a86aeb8f312231c54dc1b15e93f8039158f0 Mon Sep 17 00:00:00 2001 From: Vishwasa Navada K Date: Sun, 11 Jun 2023 19:39:12 +0530 Subject: [PATCH] fix: remove unused fs import --- codegens/nodejs-native/lib/request.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/codegens/nodejs-native/lib/request.js b/codegens/nodejs-native/lib/request.js index a281983ad..dc1b2182a 100644 --- a/codegens/nodejs-native/lib/request.js +++ b/codegens/nodejs-native/lib/request.js @@ -34,13 +34,6 @@ function makeSnippet (request, indentString, options) { else { snippet += `${nativeModule} = require('${nativeModule}');\n`; } - if (options.ES6_enabled) { - snippet += 'const '; - } - else { - snippet += 'var '; - } - snippet += 'fs = require(\'fs\');\n\n'; if (_.get(request, 'body.mode') && request.body.mode === 'urlencoded') { if (options.ES6_enabled) { snippet += 'const ';