fix: error variable shadowing problem
This commit is contained in:
parent
adf24fdcaa
commit
5bc70569ae
@ -31,8 +31,8 @@ func tusPostHandler() handleFunc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dirPath := filepath.Dir(r.URL.Path)
|
dirPath := filepath.Dir(r.URL.Path)
|
||||||
if _, err := d.user.Fs.Stat(dirPath); os.IsNotExist(err) {
|
if _, statErr := d.user.Fs.Stat(dirPath); os.IsNotExist(statErr) {
|
||||||
if err := d.user.Fs.MkdirAll(dirPath, 0755); err != nil {
|
if mkdirErr := d.user.Fs.MkdirAll(dirPath, 0755); mkdirErr != nil {
|
||||||
return http.StatusInternalServerError, err
|
return http.StatusInternalServerError, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user