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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user