From 1a05d6d03a04d165ef5633aae668de3a62539245 Mon Sep 17 00:00:00 2001 From: Svilen Markov <7613769+svilenmarkov@users.noreply.github.com> Date: Sun, 8 Sep 2024 19:34:43 +0100 Subject: [PATCH] Don't export function --- internal/feed/codeberg.go | 2 +- internal/feed/releases.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/feed/codeberg.go b/internal/feed/codeberg.go index edd83d7..d5e7b7c 100644 --- a/internal/feed/codeberg.go +++ b/internal/feed/codeberg.go @@ -11,7 +11,7 @@ type codebergReleaseResponseJson struct { HtmlUrl string `json:"html_url"` } -func FetchLatestCodebergRelease(request *ReleaseRequest) (*AppRelease, error) { +func fetchLatestCodebergRelease(request *ReleaseRequest) (*AppRelease, error) { httpRequest, err := http.NewRequest( "GET", fmt.Sprintf( diff --git a/internal/feed/releases.go b/internal/feed/releases.go index 596d1be..b0cdc25 100644 --- a/internal/feed/releases.go +++ b/internal/feed/releases.go @@ -59,7 +59,7 @@ func FetchLatestReleases(requests []*ReleaseRequest) (AppReleases, error) { func fetchLatestReleaseTask(request *ReleaseRequest) (*AppRelease, error) { switch request.Source { case ReleaseSourceCodeberg: - return FetchLatestCodebergRelease(request) + return fetchLatestCodebergRelease(request) case ReleaseSourceGithub: return fetchLatestGithubRelease(request) case ReleaseSourceGitlab: