Skip to content

Commit

Permalink
fix(delete): delete a resource without passing an options object (#275
Browse files Browse the repository at this point in the history
)
  • Loading branch information
NoChance777 authored and silasbw committed Jun 8, 2018
1 parent 33a38c6 commit 36ca19f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ class BaseObject extends CallableObject {
options = {};
} else if (typeof options === 'string') {
options = { name: options };
} else if (typeof options === 'undefined') {
options = {};
}
this.api.delete({ path: this._path(options), qs: options.qs, body: options.body },
cb200(cb));
Expand Down

0 comments on commit 36ca19f

Please sign in to comment.