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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user