From 1d371b6495744061add3fcdccdf705ebc3f37e9d Mon Sep 17 00:00:00 2001 From: binoyPeries Date: Fri, 6 Sep 2024 17:38:41 +0530 Subject: [PATCH] Fix yaml not passed issue --- dist/index.js | 3 +-- index.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 83f4937..0b921ce 100644 --- a/dist/index.js +++ b/dist/index.js @@ -38289,8 +38289,7 @@ function readSrcConfigYaml(filePath, fileType) { function parseYaml(fileContent) { try { - srcConfigYamlFile = yaml.load(fileContent); - return srcConfigYamlFile; + return yaml.load(fileContent); } catch (error) { throw new Error( `${errCodes.USER_ERROR} Failed to parse yaml: ${error.message}` diff --git a/index.js b/index.js index bea905c..395a962 100644 --- a/index.js +++ b/index.js @@ -39,8 +39,7 @@ function readSrcConfigYaml(filePath, fileType) { function parseYaml(fileContent) { try { - srcConfigYamlFile = yaml.load(fileContent); - return srcConfigYamlFile; + return yaml.load(fileContent); } catch (error) { throw new Error( `${errCodes.USER_ERROR} Failed to parse yaml: ${error.message}`