remove the funtion 'IsBadRequest' in errhelp.go that will not be called.
@@ -41,8 +41,3 @@ func IsStatusCode404(err error) bool {
func IsResourceNotFound(err error) bool {
return strings.Contains(err.Error(), "ResourceNotFound")
}
-
-// IsBadRequest checks if the error reports that a wrong request
-func IsBadRequest(err error) bool {
- return strings.Contains(err.Error(), "BadRequest")
-}
