mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-17 19:22:28 +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()
|
defer zipReader.Close()
|
||||||
|
|
||||||
for _, f := range zipReader.File {
|
for _, f := range zipReader.File {
|
||||||
path := filepath.Join(destPath, f.Name)
|
|
||||||
|
|
||||||
//issue#62: fix ZipSlip bug
|
//issue#62: fix ZipSlip bug
|
||||||
path, err := safeFilepathJoin(destPath, f.Name)
|
path, err := safeFilepathJoin(destPath, f.Name)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user