diff --git a/src/relayMutation.js b/src/relayMutation.js index 958ac3f..7875c76 100644 --- a/src/relayMutation.js +++ b/src/relayMutation.js @@ -27,10 +27,7 @@ export default function mutation( return fetchWithMiddleware(req) .then(({ data }) => relayRequest.resolve({ response: data })) - .catch(err => { - relayRequest.reject(err); - throw err; - }); + .catch(err => relayRequest.reject(err)); } function hasFiles(relayRequest: RelayClassicRequest): boolean { diff --git a/src/relayQueries.js b/src/relayQueries.js index d2f9993..22ead10 100644 --- a/src/relayQueries.js +++ b/src/relayQueries.js @@ -31,10 +31,7 @@ export default function queries( return fetchWithMiddleware(req) .then(({ data }) => relayRequest.resolve({ response: data })) - .catch(err => { - relayRequest.reject(err); - throw err; - }); + .catch(err => relayRequest.reject(err)); }) ); }