Skip to content

Commit

Permalink
Fix Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
PaitoAnderson committed Jun 8, 2021
1 parent f10ab43 commit 81081c1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/features/customer.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,16 +190,11 @@ class Customer {
// If no token was provided, look it up from storage
const authToken = token || this.token();

return this.commerce.request(
endpoint,
method,
data,
{
'X-Authorization': undefined,
Authorization: `Bearer ${authToken}`,
...extraHeaders,
},
);
return this.commerce.request(endpoint, method, data, {
'X-Authorization': undefined,
Authorization: `Bearer ${authToken}`,
...extraHeaders,
});
}

_assertArgsProvided(customerId = null, token = null) {
Expand Down

0 comments on commit 81081c1

Please sign in to comment.