From 16bb936db794d39daf5179085a8655638dc290b3 Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Tue, 27 Sep 2022 20:00:37 -0700 Subject: [PATCH] Remove redundant check on depth --- download/download.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/download/download.go b/download/download.go index 68771c9..4b5e567 100644 --- a/download/download.go +++ b/download/download.go @@ -109,10 +109,7 @@ func Get(ctx context.Context, opts GetOptions) error { cloneOpts := &git.CloneOptions{ URL: src.String(), Progress: os.Stderr, - } - - if depth != 0 { - cloneOpts.Depth = depth + Depth: depth, } repo, err := git.PlainCloneContext(ctx, dstDir, false, cloneOpts)