mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
Merge pull request #236 from tariq1890/master
Fixing megacheck issues reported by gometalinter
This commit is contained in:
@@ -85,6 +85,9 @@ func download(path, dest string, firstAttempt bool) (root *vcs.RepoRoot, err err
|
||||
// may have been rebased; we delete the directory, then try one more time:
|
||||
log.Printf("Failed to update %q (%v), trying again...", root.Repo, err.Error())
|
||||
err = os.RemoveAll(fullLocalPath)
|
||||
if err != nil {
|
||||
log.Printf("Failed to delete directory %s", fullLocalPath)
|
||||
}
|
||||
return download(path, dest, false)
|
||||
}
|
||||
return root, err
|
||||
|
||||
Reference in New Issue
Block a user