Skip to content

Commit

Permalink
Fix yaml not passed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
binoyPeries committed Sep 6, 2024
1 parent aa39975 commit 1d371b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 1d371b6

Please sign in to comment.