Skip to content

Commit

Permalink
common.createScheduleCollection: arguments are never passed (nhn#680)
Browse files Browse the repository at this point in the history
* refactor: remove unused parameter
  • Loading branch information
dilyanpalauzov committed Jul 31, 2020
1 parent 1a2975c commit 1104b5d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/js/common/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,10 @@ function scheduleIDGetter(schedule) {

module.exports = {
/**
* @param {...*} initItems - items to add newly created collection.
* @returns {Collection} new collection for schedule models.
*/
createScheduleCollection: function(initItems) { // eslint-disable-line
var collection = new Collection(scheduleIDGetter);

if (arguments.length) {
collection.add.apply(collection, arguments);
}

return collection;
createScheduleCollection: function() {
return new Collection(scheduleIDGetter);
},

/**
Expand Down

0 comments on commit 1104b5d

Please sign in to comment.