Skip to content

Commit

Permalink
no need for null check since we have a default
Browse files Browse the repository at this point in the history
  • Loading branch information
officert committed Jun 13, 2017
1 parent e3992e5 commit 66eb625
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/client/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ function getEventsApi(key) {
$api_key: key
});

return Promise.resolve(v204.post('/events', data, (params ? {
return Promise.resolve(v204.post('/events', data, {
params
} : null)))
}))
.then(response => response.body);
},
/**
Expand Down
4 changes: 2 additions & 2 deletions lib/client/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function getLabelsApi(key) {
$api_key: key
});

return Promise.resolve(v204.post(`/users/${userId}/labels`, data, (params ? {
return Promise.resolve(v204.post(`/users/${userId}/labels`, data, {
params
} : null)))
}))
.then(response => response.body);
},
/**
Expand Down

0 comments on commit 66eb625

Please sign in to comment.