Skip to content

Commit

Permalink
Update common.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Jul 20, 2023
1 parent 94214fd commit 205767b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ function translateData(responseType: string | undefined, data: any) {
return JSON.parse(Buffer.from(data).toString('utf8'));
case 'blob':
return JSON.parse(data.text());
case 'text':
return JSON.parse(data.text());

Check failure on line 243 in src/common.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
default:
return data;
}
Expand Down

0 comments on commit 205767b

Please sign in to comment.