Don't export function

This commit is contained in:
Svilen Markov 2024-09-08 19:34:43 +01:00
parent 60f4183057
commit 1a05d6d03a
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ type codebergReleaseResponseJson struct {
HtmlUrl string `json:"html_url"` HtmlUrl string `json:"html_url"`
} }
func FetchLatestCodebergRelease(request *ReleaseRequest) (*AppRelease, error) { func fetchLatestCodebergRelease(request *ReleaseRequest) (*AppRelease, error) {
httpRequest, err := http.NewRequest( httpRequest, err := http.NewRequest(
"GET", "GET",
fmt.Sprintf( fmt.Sprintf(

View File

@ -59,7 +59,7 @@ func FetchLatestReleases(requests []*ReleaseRequest) (AppReleases, error) {
func fetchLatestReleaseTask(request *ReleaseRequest) (*AppRelease, error) { func fetchLatestReleaseTask(request *ReleaseRequest) (*AppRelease, error) {
switch request.Source { switch request.Source {
case ReleaseSourceCodeberg: case ReleaseSourceCodeberg:
return FetchLatestCodebergRelease(request) return fetchLatestCodebergRelease(request)
case ReleaseSourceGithub: case ReleaseSourceGithub:
return fetchLatestGithubRelease(request) return fetchLatestGithubRelease(request)
case ReleaseSourceGitlab: case ReleaseSourceGitlab: