mirror of
https://github.com/minio/minio.git
synced 2025-11-06 20:33:07 -05:00
committed by
GitHub
parent
db35bcf2ce
commit
674c6f7a7b
@@ -686,3 +686,9 @@ func isErrPreconditionFailed(err error) bool {
|
||||
_, ok := err.(PreConditionFailed)
|
||||
return ok
|
||||
}
|
||||
|
||||
// isErrMethodNotAllowed - Check if error type is MethodNotAllowed.
|
||||
func isErrMethodNotAllowed(err error) bool {
|
||||
var methodNotAllowed MethodNotAllowed
|
||||
return errors.As(err, &methodNotAllowed)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user