Skip to content

Commit

Permalink
Remove default args object
Browse files Browse the repository at this point in the history
  • Loading branch information
benweier committed Sep 22, 2019
1 parent c118274 commit a156830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wow.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ WoW.prototype.token = function getToken(args) {
* @param {Number} [args.id=index] Item ID
* @return {Promise} A thenable Promises/A+ reference
*/
WoW.prototype.itemData = function getItemData({ id = 'index', ...args } = {}) {
WoW.prototype.itemData = function getItemData({ id, ...args }) {
return this.blizzard.get(
`/data/wow/item/${id}`,
merge({}, args, {
Expand Down

0 comments on commit a156830

Please sign in to comment.