mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Rename LatestGithubReleases -> FetchLatestReleases
This commit is contained in:
parent
53cc45a0d5
commit
f12bf8c09a
@ -47,9 +47,9 @@ var insecureHTTP = &http.Client{
|
||||
},
|
||||
}
|
||||
|
||||
// LatestGithubReleases returns the latest releases, including prereleases or
|
||||
// FetchLatestReleases returns the latest releases, including prereleases or
|
||||
// not depending on the argument
|
||||
func LatestGithubReleases(releasesURL, version string) ([]Release, error) {
|
||||
func FetchLatestReleases(releasesURL, version string) ([]Release, error) {
|
||||
resp, err := insecureHTTP.Get(releasesURL)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -78,7 +78,7 @@ func (s SortByRelease) Less(i, j int) bool {
|
||||
}
|
||||
|
||||
func LatestRelease(releasesURL, version string) (Release, error) {
|
||||
rels, _ := LatestGithubReleases(releasesURL, version)
|
||||
rels, _ := FetchLatestReleases(releasesURL, version)
|
||||
return SelectLatestRelease(version, rels)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user