zskarte / zskarte-client

Class methods should utilize this JS-0105
Anti-pattern
Minor
8 months ago8 months old
Expected 'this' to be used by class async method '_retry'
35    return this._apiUrl;
36  }
37
38  private async _retry<RESPONSE>(fn: Observable<RESPONSE>, options?: IApiRequestOptions): Promise<ApiResponse<RESPONSE>> {39    const maxRetries = options?.retries || 3;
40    let lastError: HttpErrorResponse = new HttpErrorResponse({ status: 0 });
41    for (let i = 0; i < maxRetries; i++) {