From 5050b408c20ac2caa6e20022a4dc09fe52013865 Mon Sep 17 00:00:00 2001 From: ittacco Date: Wed, 16 Oct 2024 16:31:26 +0200 Subject: [PATCH] fixed if syntax Signed-off-by: ittacco --- src/internal/git/repository.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/internal/git/repository.go b/src/internal/git/repository.go index 85a86d93c0..9b54d38d7a 100644 --- a/src/internal/git/repository.go +++ b/src/internal/git/repository.go @@ -99,10 +99,8 @@ func Clone(ctx context.Context, rootPath, address string, shallow bool) (*Reposi err := r.gitCloneFallback(ctx, gitURLNoRef, ref, shallow) if err != nil { return nil, err - } - return r, nil - return r, nil } + return r, nil } // If we're cloning the whole repo, we need to also fetch the other branches besides the default.