Skip to content

Commit

Permalink
Smarter short-circuiting of the XML-getting logic
Browse files Browse the repository at this point in the history
  • Loading branch information
TehShrike committed Jun 28, 2016
1 parent 95c587a commit fd780ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ function _createXHR(options) {
if (xhr.response) {
body = xhr.response
} else {
var xml = getXml(xhr)
body = xhr.responseText || xml
body = xhr.responseText || getXml(xhr)
}

if (isJson) {
Expand Down

0 comments on commit fd780ac

Please sign in to comment.