Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
linting error removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharatkk-metron committed Jul 24, 2024
1 parent dcff052 commit 79be2d9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/provider/SonarqubeClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class SonarqubeClient {
private async makeSingularRequest<T>(url: string): Promise<T | null> {
const response = await this.makeRequest(`${url}`);

return response.json();
return response.json() as T;
}

private async iterateResources<T extends string, U>({
Expand Down Expand Up @@ -266,7 +266,8 @@ export class SonarqubeClient {
parametizedEndpoint,
endpointVersion,
);
const result: PaginatedResponse<T, U> = await response.json();
const result: PaginatedResponse<T, U> =
(await response.json()) as PaginatedResponse<T, U>;
const items = result[iterableObjectKey];
if (Array.isArray(items)) {
for (const resource of items) {
Expand Down

0 comments on commit 79be2d9

Please sign in to comment.