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}`