Skip to content

Commit

Permalink
Spread safeOctokitResponse parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
willsawyerrrr committed Jan 19, 2024
1 parent f9e0c83 commit e070c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function safeOctokitRequest<Method extends (...args: any[]) => any>
...params: Parameters<Method>
): Promise<Awaited<ReturnType<Method>>["data"]> {
try {
const response = await method(params);
const response = await method(...params);
return response.data;
} catch (error) {
if (error instanceof RequestError) {
Expand Down

0 comments on commit e070c98

Please sign in to comment.