File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -133,14 +133,14 @@ function validateRetryPolicy(obj: any): RetryPolicy {
133
133
for ( const value of obj . retryableStatusCodes ) {
134
134
if ( typeof value === 'number' ) {
135
135
if ( ! Object . values ( Status ) . includes ( value ) ) {
136
- throw new Error ( 'Invlid method config retry policy: retryableStatusCodes value not in status code range' ) ;
136
+ throw new Error ( 'Invalid method config retry policy: retryableStatusCodes value not in status code range' ) ;
137
137
}
138
138
} else if ( typeof value === 'string' ) {
139
139
if ( ! Object . values ( Status ) . includes ( value . toUpperCase ( ) ) ) {
140
- throw new Error ( 'Invlid method config retry policy: retryableStatusCodes value not a status code name' ) ;
140
+ throw new Error ( 'Invalid method config retry policy: retryableStatusCodes value not a status code name' ) ;
141
141
}
142
142
} else {
143
- throw new Error ( 'Invlid method config retry policy: retryableStatusCodes value must be a string or number' ) ;
143
+ throw new Error ( 'Invalid method config retry policy: retryableStatusCodes value must be a string or number' ) ;
144
144
}
145
145
}
146
146
return {
You can’t perform that action at this time.
0 commit comments