diff --git a/src/api-client.ts b/src/api-client.ts index 21a99b5..5882bb1 100644 --- a/src/api-client.ts +++ b/src/api-client.ts @@ -56,7 +56,7 @@ export class ApiClient { }: ${JSON.stringify(res.result)}` ) } - if (res.result == null) { + if (!res.result) { throw new JobDetailsFetchingError( `fetching job details: missing response` ) @@ -94,7 +94,7 @@ export class ApiClient { }: ${JSON.stringify(res.result)}` ) } - if (res.result == null) { + if (!res.result) { throw new CredentialFetchingError( `fetching credentials: missing response` )