Skip to content

Commit 4a8f5ba

Browse files
AndrewFerrJohennes
authored andcommitted
Remove redundant type arguments in function call (matrix-org#4507)
as the types can be deduced by the function arguments.
1 parent 941fba7 commit 4a8f5ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/embedded.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class RoomWidgetClient extends MatrixClient {
162162
data: T,
163163
): Promise<R> => {
164164
try {
165-
return await transportSend<T, R>(action, data);
165+
return await transportSend(action, data);
166166
} catch (error) {
167167
processAndThrow(error);
168168
}
@@ -174,7 +174,7 @@ export class RoomWidgetClient extends MatrixClient {
174174
data: T,
175175
): Promise<R> => {
176176
try {
177-
return await transportSendComplete<T, R>(action, data);
177+
return await transportSendComplete(action, data);
178178
} catch (error) {
179179
processAndThrow(error);
180180
}

0 commit comments

Comments
 (0)