Remove redundant type arguments in function call (#4507)
as the types can be deduced by the function arguments.
This commit is contained in:
committed by
GitHub
parent
10a4fd8328
commit
4c53836a13
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user