Skip to content

Commit

Permalink
Merge pull request #11 from binoyPeries/main
Browse files Browse the repository at this point in the history
Fix yaml not passed issue
  • Loading branch information
binoyPeries committed Sep 6, 2024
2 parents aa39975 + 1d371b6 commit c8ded75
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 c8ded75

Please sign in to comment.