Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tch1b0 committed Nov 27, 2022
1 parent 9e89fc7 commit f1fb185
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ func unzip(src, dest string) error {

fileName := string(shaRegex.ReplaceAll([]byte(f.Name), []byte("")))
path := filepath.Join(dest, fileName)
fmt.Println(path)

// Check for ZipSlip (Directory traversal)
if !strings.HasPrefix(path, filepath.Clean(dest)+string(os.PathSeparator)) {
Expand Down
2 changes: 0 additions & 2 deletions tests/utility_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package tests

import (
"fmt"
"path/filepath"
"testing"

Expand All @@ -17,7 +16,6 @@ func TestPaths(t *testing.T) {
path := "/this/is/a/test"
addonsPath := filepath.Join(path + "/addons")
paths := utility.CreatePaths(path)
fmt.Println(path)
if paths.Root != path {
t.Errorf(pathNotEqualMessage, paths.Root, path)
}
Expand Down

0 comments on commit f1fb185

Please sign in to comment.