From 97d4568c2b936861b3ef57bdf02ed03033e749b1 Mon Sep 17 00:00:00 2001 From: Rodrigo Delduca <46259+skhaz@users.noreply.github.com> Date: Wed, 15 Nov 2023 16:38:07 -0300 Subject: [PATCH] Work in progress --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index ec342af..475f7bb 100644 --- a/main.go +++ b/main.go @@ -47,7 +47,7 @@ func readFile(file *zip.File) ([]byte, error) { return io.ReadAll(rc) } -func stripRootZip(zipData []byte) ([]byte, error) { +func stripRoot(zipData []byte) ([]byte, error) { reader, err := zip.NewReader(bytes.NewReader(zipData), int64(len(zipData))) if err != nil { return nil, fmt.Errorf("failed to create zip reader: %w", err) @@ -160,7 +160,7 @@ func getBundle(org, repo, release string) ([]byte, error) { return nil, fmt.Errorf("read all error: %w", err) } - bundle, err := stripRootZip(body) + bundle, err := stripRoot(body) if err != nil { return nil, fmt.Errorf("strip root zip error: %w", err) }