Skip to content

Commit

Permalink
fixed if syntax
Browse files Browse the repository at this point in the history
Signed-off-by: ittacco <lorenzo.tacconi1967@gmail.com>
  • Loading branch information
ittacco committed Nov 9, 2024
1 parent a5621f0 commit 5050b40
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/internal/git/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5050b40

Please sign in to comment.