Skip to content

Commit 2c9dfb9

Browse files
sinchangphated
authored andcommitted
Fix: Default options argument (fixes #1) (#2)
1 parent 4bfeb5e commit 2c9dfb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function output(file) {
2929
await writeFile(file.path, file.contents);
3030
}
3131

32-
async function download(owner, repo, directory, options) {
32+
async function download(owner, repo, directory, options = {}) {
3333
var { tree } = await ghTree(owner, repo, { recursive: true, sha: options.sha });
3434

3535
var paths = tree

0 commit comments

Comments
 (0)