diff --git a/packages/ember-data/lib/adapters/rest-adapter.js b/packages/ember-data/lib/adapters/rest-adapter.js index 103c0602a4b..7ff68a156c6 100644 --- a/packages/ember-data/lib/adapters/rest-adapter.js +++ b/packages/ember-data/lib/adapters/rest-adapter.js @@ -815,15 +815,12 @@ export default Adapter.extend(BuildURLMixin, { var hash = adapter.ajaxOptions(url, type, options); hash.success = function(payload, textStatus, jqXHR) { - let response; - - if (!(response instanceof AdapterError)) { - response = adapter.handleResponse( - jqXHR.status, - parseResponseHeaders(jqXHR.getAllResponseHeaders()), - response || payload - ); - } + + let response = adapter.handleResponse( + jqXHR.status, + parseResponseHeaders(jqXHR.getAllResponseHeaders()), + response || payload + ); if (response instanceof AdapterError) { Ember.run(null, reject, response);