Skip to content

Commit

Permalink
Remove redundant type arguments in function call
Browse files Browse the repository at this point in the history
as the types can be deduced by the function arguments.
  • Loading branch information
AndrewFerr committed Nov 11, 2024
1 parent 10a4fd8 commit 9ca3619
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/embedded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 9ca3619

Please sign in to comment.