Appease the linter

This commit is contained in:
Travis Ralston 2020-09-30 20:49:31 -06:00
parent 08c5e9e039
commit 2ec94e8a69
5 changed files with 4 additions and 7 deletions

View file

@ -70,7 +70,7 @@ export class OwnProfileStore extends AsyncStoreWithClient<IState> {
* will be returned as an HTTP URL.
* @returns The HTTP URL of the user's avatar
*/
public getHttpAvatarUrl(size: number = 0): string {
public getHttpAvatarUrl(size = 0): string {
if (!this.avatarMxc) return null;
const adjustedSize = size > 1 ? size : undefined; // don't let negatives or zero through
return this.matrixClient.mxcUrlToHttp(this.avatarMxc, adjustedSize, adjustedSize);

View file

@ -25,7 +25,7 @@ import {
IWidgetData,
MatrixCapabilities,
Widget,
WidgetApiFromWidgetAction
WidgetApiFromWidgetAction,
} from "matrix-widget-api";
import { StopGapWidgetDriver } from "./StopGapWidgetDriver";
import { EventEmitter } from "events";