style: add @typescript-eslint/return-await rule (#9612)

This commit is contained in:
Brooooooklyn committed 2025-01-09 09:28:59 +00:00
1 parent 6d29f80894
commit fed0156f22
5 files changed
+14 -15

No files matched your search

@@ -91,7 +91,7 @@ async function resizeImage(blob: Blob | File): Promise<Blob | null> {
if (ctx) {
ctx.imageSmoothingQuality = 'high';
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
return new Promise(resolve =>
return await new Promise(resolve =>
canvas.toBlob(blob => resolve(blob), 'image/jpeg', 0.8)
);
}
@@ -183,7 +183,7 @@ export class AuthService extends Service {
this.session.revalidate();
track.$.$.auth.signedIn({ method: 'oauth', provider });
return res.json();
return await res.json();
} catch (e) {
track.$.$.auth.signInFail({
method: 'oauth',