Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Commit 3e0f6f1

Browse files
authored
Update index.js
1 parent 22cef8e commit 3e0f6f1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ function centsToAmount(cents) {
4444
}
4545

4646

47-
function pathWithQuery(path, params, options) {
48-
const negatedParams = options ? options.negatedParams : null;
47+
function pathWithQuery(path, params, { negatedParams } = {}) {
4948
const query = [];
5049
if (params) {
5150
for (const key in params) {
@@ -336,8 +335,7 @@ export default class GoCommerce {
336335
}));
337336
}
338337

339-
orderHistory(params, options) {
340-
const negatedParams = options ? options.negatedParams : null;
338+
orderHistory(params, { negatedParams } = {}) {
341339
let path = "/orders";
342340
if (params && params.user_id) {
343341
path = `/users/${params.user_id}/orders`;

0 commit comments

Comments
 (0)