6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 22:04:41 +00:00

Fix issues found by nlreturn linter

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-24 18:28:09 +02:00
parent 3b85a64c2d
commit ca8681f997
7 changed files with 8 additions and 0 deletions

View File

@@ -57,6 +57,7 @@ func Clone(opts *CloneOpts) (*Repo, error) {
if err != nil {
cleanupFailedClone(opts.Path)
return nil, err
}
@@ -68,6 +69,7 @@ func Clone(opts *CloneOpts) (*Repo, error) {
// Fetch preforms a git fetch on all remotes.
func (r *Repo) Fetch() error {
err := run.Git("fetch", "--all").OnRepo(r.path).AndShutUp()
return err
}