golangci-lint
This commit is contained in:
parent
365804a255
commit
23cfa7501d
@ -145,7 +145,7 @@ var resourcePostPutHandler = withUser(func(w http.ResponseWriter, r *http.Reques
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if isPieceHasUpload == false {
|
if !isPieceHasUpload {
|
||||||
err := d.user.Fs.MkdirAll(dir, 0775)
|
err := d.user.Fs.MkdirAll(dir, 0775)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
@ -160,7 +160,7 @@ var resourcePostPutHandler = withUser(func(w http.ResponseWriter, r *http.Reques
|
|||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if isPieceUpload {
|
if isPieceUpload {
|
||||||
d.user.Fs.Remove(filePath)
|
_ = d.user.Fs.Remove(filePath)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -180,7 +180,7 @@ var resourcePostPutHandler = withUser(func(w http.ResponseWriter, r *http.Reques
|
|||||||
for i := 1; i <= totalChunckInt; i++ {
|
for i := 1; i <= totalChunckInt; i++ {
|
||||||
piecefileName := strconv.Itoa(i) + "_" + fileName
|
piecefileName := strconv.Itoa(i) + "_" + fileName
|
||||||
itemPath = dir + piecefileName
|
itemPath = dir + piecefileName
|
||||||
spieceFile, err := d.user.Fs.Open(itemPath)
|
spieceFile, err := d.user.Fs.Open(itemPath) // nolint:shadow
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user