Remove redundant type arguments in function call (#4507)

as the types can be deduced by the function arguments.
This commit is contained in:
Andrew Ferrazzutti
2024-11-11 06:19:48 -05:00
committed by GitHub
parent 10a4fd8328
commit 4c53836a13
+2 -2
View File
@@ -162,7 +162,7 @@ export class RoomWidgetClient extends MatrixClient {
data: T,
): Promise<R> => {
try {
return await transportSend<T, R>(action, data);
return await transportSend(action, data);
} catch (error) {
processAndThrow(error);
}
@@ -174,7 +174,7 @@ export class RoomWidgetClient extends MatrixClient {
data: T,
): Promise<R> => {
try {
return await transportSendComplete<T, R>(action, data);
return await transportSendComplete(action, data);
} catch (error) {
processAndThrow(error);
}