1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-07 06:02:27 +08:00

fix: go report issue ineffassign

This commit is contained in:
dudaodong
2022-11-18 17:05:54 +08:00
parent 2b17329094
commit d36ab5cc3a

View File

@@ -222,8 +222,6 @@ func UnZip(zipFile string, destPath string) error {
defer zipReader.Close()
for _, f := range zipReader.File {
path := filepath.Join(destPath, f.Name)
//issue#62: fix ZipSlip bug
path, err := safeFilepathJoin(destPath, f.Name)
if err != nil {