Remove dead & duplicated code (#11405)
* Remove dead code * Make dead code happier * DRY pickle additional data calculation * Iterate
This commit is contained in:
@@ -242,10 +242,6 @@ export class StopGapWidget extends EventEmitter {
|
||||
return parsed.toString().replace(/%24/g, "$");
|
||||
}
|
||||
|
||||
public get isManagedByManager(): boolean {
|
||||
return !!this.scalarToken;
|
||||
}
|
||||
|
||||
public get started(): boolean {
|
||||
return !!this.messaging;
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
||||
|
||||
if (!client || !roomId) throw new Error("Not in a room or not attached to a client");
|
||||
|
||||
let r: { event_id: string } | null = null; // eslint-disable-line camelcase
|
||||
let r: { event_id: string } | null;
|
||||
if (stateKey !== null) {
|
||||
// state event
|
||||
r = await client.sendStateEvent(roomId, eventType, content, stateKey);
|
||||
|
||||
Reference in New Issue
Block a user