We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b7395 commit 9f558aaCopy full SHA for 9f558aa
1 file changed
lib/Repository.js
@@ -187,8 +187,10 @@ class Repository extends Requestable {
187
* @return {Promise} - the promise for the http request
188
*/
189
listCommits(options, cb) {
190
- options = options || {};
191
-
+ if (typeof options === 'function') {
+ cb = options;
192
+ options = {};
193
+ }
194
options.since = this._dateToISO(options.since);
195
options.until = this._dateToISO(options.until);
196
0 commit comments