Skip to content

Commit

Permalink
Explicitly specify an empty object for non-supplied arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
oo-bldrs committed Dec 3, 2022
1 parent 077bc71 commit 18881a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/GitHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export async function getComment(repository, issueId, commentId) {
* @param {object} args The args to substitute
* @return {object} The object at the resource
*/
async function getGitHub(repository, path, args) {
async function getGitHub(repository, path, args = {}) {
assertDefined(repository.orgName)
assertDefined(repository.name)

Expand Down

0 comments on commit 18881a6

Please sign in to comment.