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 5314a37 commit 7c62e93
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 @@ -811,9 +811,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 7c62e93

Please sign in to comment.