1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-16 08:02:25 +03:00

Apply corrections identified by SonarQube (#8457)

This commit is contained in:
Michael Telatynski
2022-05-03 22:04:37 +01:00
committed by GitHub
parent 99cb83a9df
commit 964c60d086
73 changed files with 211 additions and 232 deletions

View File

@@ -23,7 +23,7 @@ export async function getDrawable(url: string): Promise<CanvasImageSource> {
if ('createImageBitmap' in window) {
const response = await fetch(url);
const blob = await response.blob();
return await createImageBitmap(blob);
return createImageBitmap(blob);
} else {
return new Promise<HTMLImageElement>((resolve, reject) => {
const img = document.createElement("img");