From 98547b801f991b0688d7f28d92f0a84eff834b2f Mon Sep 17 00:00:00 2001 From: dadav <33197631+dadav@users.noreply.github.com> Date: Sat, 28 Dec 2024 10:22:37 +0100 Subject: [PATCH] fix: no walrus --- internal/v3/api/release.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/v3/api/release.go b/internal/v3/api/release.go index 83ffba2..e18bd3a 100644 --- a/internal/v3/api/release.go +++ b/internal/v3/api/release.go @@ -115,7 +115,6 @@ type GetFile400Response struct { // GetFile - Download module release func (s *ReleaseOperationsApi) GetFile(ctx context.Context, filename string) (gen.ImplResponse, error) { - if filename == "" { return gen.Response(400, gen.GetFile400Response{ Message: "No filename provided", @@ -368,7 +367,7 @@ func (s *ReleaseOperationsApi) GetReleases(ctx context.Context, limit int32, off } base.RawQuery = params.Encode() - currentInf := interface{}(base.String()) + currentInf = interface{}(base.String()) params.Set("offset", "0") firstInf := interface{}(base.String())