Skip to content

Commit e8152f8

Browse files
committed
Prettier
1 parent 647a724 commit e8152f8

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/ClientWidgetApi.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,6 @@ export class ClientWidgetApi extends EventEmitter {
612612
});
613613
}
614614

615-
616615
let sendEventPromise: Promise<ISendEventDetails | ISendDelayedEventDetails>;
617616
if (request.data.state_key !== undefined) {
618617
if (!this.canSendStateEvent(request.data.type, request.data.state_key)) {
@@ -677,10 +676,7 @@ export class ClientWidgetApi extends EventEmitter {
677676
...params,
678677
);
679678
} else if (request.data.sticky_duration_ms) {
680-
sendEventPromise = this.driver.sendStickyEvent(
681-
request.data.sticky_duration_ms,
682-
...params,
683-
);
679+
sendEventPromise = this.driver.sendStickyEvent(request.data.sticky_duration_ms, ...params);
684680
} else {
685681
sendEventPromise = this.driver.sendEvent(...params);
686682
}

src/WidgetApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export class WidgetApi extends EventEmitter {
474474
...(roomId !== undefined && { room_id: roomId }),
475475
...(delay !== undefined && { delay }),
476476
...(parentDelayId !== undefined && { parent_delay_id: parentDelayId }),
477-
...(stickyDurationMs !== undefined && { sticky_duration_ms: stickyDurationMs })
477+
...(stickyDurationMs !== undefined && { sticky_duration_ms: stickyDurationMs }),
478478
},
479479
);
480480
}

src/driver/WidgetDriver.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export abstract class WidgetDriver {
104104
eventType: string,
105105
content: unknown,
106106
stateKey: string | null = null,
107-
roomId: string | null = null
107+
roomId: string | null = null,
108108
): Promise<ISendEventDetails> {
109109
return Promise.reject(new Error("Failed to override function"));
110110
}
@@ -126,11 +126,11 @@ export abstract class WidgetDriver {
126126
* @throws Rejected when the event could not be sent.
127127
*/
128128
public sendStickyEvent(
129-
stickyDurationMs: number,
129+
stickyDurationMs: number,
130130
eventType: string,
131131
content: unknown,
132132
stateKey: string | null = null,
133-
roomId: string | null = null
133+
roomId: string | null = null,
134134
): Promise<ISendEventDetails> {
135135
throw new Error("Method not implemented.");
136136
}
@@ -188,11 +188,11 @@ export abstract class WidgetDriver {
188188
public sendDelayedStickyEvent(
189189
delay: number | null,
190190
parentDelayId: string | null,
191-
stickyDurationMs: number,
191+
stickyDurationMs: number,
192192
eventType: string,
193193
content: unknown,
194194
stateKey: string | null = null,
195-
roomId: string | null = null
195+
roomId: string | null = null,
196196
): Promise<ISendEventDetails> {
197197
throw new Error("Method not implemented.");
198198
}

0 commit comments

Comments
 (0)