chore: make linter happy
This commit is contained in:
@@ -77,7 +77,7 @@ func resourceDeleteHandler(fileCache FileCache) handleFunc {
|
||||
return errToStatus(err), err
|
||||
}
|
||||
|
||||
err = d.RunHook(func() error {
|
||||
err = d.RunHook(func() error { //nolint:typecheck
|
||||
return d.user.Fs.RemoveAll(r.URL.Path)
|
||||
}, "delete", r.URL.Path, "", d.user)
|
||||
|
||||
@@ -125,7 +125,7 @@ func resourcePostHandler(fileCache FileCache) handleFunc {
|
||||
}
|
||||
}
|
||||
|
||||
err = d.RunHook(func() error {
|
||||
err = d.RunHook(func() error { //nolint:typecheck
|
||||
info, writeErr := writeFile(d.user.Fs, r.URL.Path, r.Body)
|
||||
if writeErr != nil {
|
||||
return writeErr
|
||||
@@ -162,7 +162,7 @@ var resourcePutHandler = withUser(func(w http.ResponseWriter, r *http.Request, d
|
||||
return http.StatusNotFound, nil
|
||||
}
|
||||
|
||||
err = d.RunHook(func() error {
|
||||
err = d.RunHook(func() error { //nolint:typecheck
|
||||
info, writeErr := writeFile(d.user.Fs, r.URL.Path, r.Body)
|
||||
if writeErr != nil {
|
||||
return writeErr
|
||||
@@ -213,7 +213,7 @@ func resourcePatchHandler(fileCache FileCache) handleFunc {
|
||||
return http.StatusForbidden, nil
|
||||
}
|
||||
|
||||
err = d.RunHook(func() error {
|
||||
err = d.RunHook(func() error { //nolint:typecheck
|
||||
return patchAction(r.Context(), action, src, dst, d, fileCache)
|
||||
}, action, src, dst, d.user)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user