Clean code

This commit is contained in:
Adria Navarro 2025-01-09 12:50:19 +01:00
parent 2cbf7a47c1
commit 2b90d972b2
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ export const createAPIClient = (config: APIClientConfig = {}): APIClient => {
): Promise<APIError> => {
// Try to read a message from the error
let message = response.statusText
let json: any = null
let json = null
try {
json = await response.json()
if (json?.message) {