Skip to content

Commit 2229654

Browse files
committed
ensures default value for depth (defaulting to 3 for consistency)
1 parent 4cda4db commit 2229654

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
@@ -31,7 +31,7 @@ const getTar = ({
3131
repo,
3232
path = '',
3333
name,
34-
depth
34+
depth = 3
3535
}) => {
3636
const url = `https://codeload.github.com/${user}/${repo}/tar.gz/master`
3737
const cmd = `curl ${url} | tar -xz -C ${name} --strip=${depth} ${repo}-master/${path}`

0 commit comments

Comments
 (0)