Skip to content

Commit

Permalink
fix: assign default value for changedFiles (#35)
Browse files Browse the repository at this point in the history
* fix: assign default value for changedFiles

* Update index.js

* prettier fix

* fix: test
  • Loading branch information
jithine authored Aug 25, 2023
1 parent 17f01a7 commit 03706d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function buildStatus(buildData, config) {
return;
}

const changedFiles = Hoek.reach(buildData, 'build.meta.commit.changedFiles').split(',');
const changedFiles = Hoek.reach(buildData, 'build.meta.commit.changedFiles', { default: '' }).split(',');

let changedFilesStr = '';

Expand Down

0 comments on commit 03706d9

Please sign in to comment.