Skip to content

Commit

Permalink
fix: sourceStringsApi.stringBatchOperations throws internal error ins…
Browse files Browse the repository at this point in the history
…ide handleHttpClientError (#331)
  • Loading branch information
kisharnath authored Nov 15, 2023
1 parent c471af1 commit d9f2871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function handleHttpClientError(error: HttpClientError): never {
const validationCodes: { key: string; codes: string[] }[] = [];
const validationMessages: string[] = [];
crowdinResponseErrors.forEach((e: any) => {

Check warning on line 158 in src/core/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type
if (e.error.key && Array.isArray(e.error?.errors)) {
if (e.error?.key && Array.isArray(e.error?.errors)) {
const codes: string[] = [];
e.error.errors.forEach((er: any) => {

Check warning on line 161 in src/core/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type
if (er.message && er.code) {
Expand Down

0 comments on commit d9f2871

Please sign in to comment.