Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
skhaz committed Nov 15, 2023
1 parent 6b23943 commit 97d4568
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 97d4568

Please sign in to comment.