From 34cb4ebd3bc1d7aaa263929c7ae27ac46298b285 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 9 Jan 2026 05:31:38 +0900 Subject: internal/pkg: pass context to file cure This removes the left over embedded contexts. Signed-off-by: Ophestra --- internal/pkg/tar.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'internal/pkg/tar.go') diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go index dc15a154..624eafe2 100644 --- a/internal/pkg/tar.go +++ b/internal/pkg/tar.go @@ -4,7 +4,6 @@ import ( "archive/tar" "compress/bzip2" "compress/gzip" - "context" "encoding/binary" "errors" "io" @@ -42,13 +41,12 @@ func NewTar(a Artifact, compression uint64) Artifact { // NewHTTPGetTar is abbreviation for NewHTTPGet passed to NewTar. func NewHTTPGetTar( - ctx context.Context, hc *http.Client, url string, checksum Checksum, compression uint64, ) Artifact { - return NewTar(NewHTTPGet(ctx, hc, url, checksum), compression) + return NewTar(NewHTTPGet(hc, url, checksum), compression) } // Kind returns the hardcoded [Kind] constant. -- cgit v1.3.1