0

The SonarQube suggested me - Redundant use of 'await' on a return value for the following code:

public async download(url: string) {
  return await this.http.get<Blob>(
    url,
    {responseType: 'blob' as 'josn'}).toPromise();
}

How can I eliminate the issue? should I remove the return keyword?

0 Answers0