Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Sep 28, 2016
1 parent 1ca72e5 commit 4b9dfde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
})
}

Aria2.prototype.send = function (method /* [,param] [,param] [,...] [, fn]*/) {
Aria2.prototype.send = function (method /* [,param] [,param] [,...] [, fn] */) {
var params = Array.prototype.slice.call(arguments, 1)
var cb = typeof params[params.length - 1] === 'function' ? params.pop() : null
return this.exec(method, params, cb)
Expand Down Expand Up @@ -295,7 +295,7 @@

Aria2.methods.forEach(function (method) {
var sufix = method.indexOf('.') > -1 ? method.split('.')[1] : method
Aria2.prototype[sufix] = function (/* [param] [,param] [,...]*/) {
Aria2.prototype[sufix] = function (/* [param] [,param] [,...] */) {
return this.send.apply(this, [method].concat(Array.prototype.slice.call(arguments)))
}
})
Expand Down

0 comments on commit 4b9dfde

Please sign in to comment.