refactor(s3api_object_handlers): deleteMultipleObjectsLimmit -> `de… (#3695)

refactor(s3api_object_handlers): `deleteMultipleObjectsLimmit` -> `deleteMultipleObjectsLimit`

Signed-off-by: Ryan Russell <git@ryanrussell.org>

Signed-off-by: Ryan Russell <git@ryanrussell.org>
This commit is contained in:
Ryan Russell 2022-09-15 05:12:48 -05:00 committed by GitHub
parent c4fc007630
commit ad3a3c8782
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ import (
)
const (
deleteMultipleObjectsLimmit = 1000
deleteMultipleObjectsLimit = 1000
)
func mimeDetect(r *http.Request, dataReader io.Reader) io.ReadCloser {
@ -250,7 +250,7 @@ func (s3a *S3ApiServer) DeleteMultipleObjectsHandler(w http.ResponseWriter, r *h
return
}
if len(deleteObjects.Objects) > deleteMultipleObjectsLimmit {
if len(deleteObjects.Objects) > deleteMultipleObjectsLimit {
s3err.WriteErrorResponse(w, r, s3err.ErrInvalidMaxDeleteObjects)
return
}