Skip to content

Commit

Permalink
19-oct: fixed generation error
Browse files Browse the repository at this point in the history
  • Loading branch information
genevieve.conty committed Nov 15, 2019
1 parent 220aa93 commit 7a19a5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/AvaTaxClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,11 @@ export default class AvaTaxClient {
var contentType = res.headers._headers['content-type'][0];

if (contentType === 'application/vnd.ms-excel' || contentType === 'text/csv') {
{
return res;
}
return res.json();
})
.then(json => {
.then(json => {
// handle error
if (json.error) {
let ex = new Error(json.error.message);
Expand Down

0 comments on commit 7a19a5d

Please sign in to comment.