mirror of
https://github.com/gojp/goreportcard.git
synced 2026-01-28 22:39:05 +08:00
revert dir rename
This commit is contained in:
@@ -85,5 +85,10 @@ func ProxyDownload(path string) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return mv.Version, os.Rename(filepath.Join(reposDir, lowerPath+"@"+mv.Version), filepath.Join(reposDir, path))
|
||||
err = os.Rename(filepath.Join(reposDir, path+"@"+mv.Version), filepath.Join(reposDir, path))
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
return mv.Version, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user