Skip to content

Commit

Permalink
Remove redundant withPromise from client.mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Mar 16, 2023
1 parent afb87a0 commit c6cb332
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -799,9 +799,7 @@ export const Client: new (opts: ClientOptions) => Client = function Client(
},

mutation(query, variables, context) {
return withPromise(
client.executeMutation(createRequest(query, variables), context)
);
return client.executeMutation(createRequest(query, variables), context);
},
} as Client);

Expand Down

0 comments on commit c6cb332

Please sign in to comment.