Skip to content

Commit

Permalink
Github plugin: Always set the per_page parameter
Browse files Browse the repository at this point in the history
We should always send the `per_page` parameter since it's always set
anyway.
  • Loading branch information
koddsson committed May 16, 2016
1 parent 7ebb852 commit 524304b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/github/github.js
Expand Up @@ -158,9 +158,11 @@ exports.Github = (function() {
}

if (isFinite(req.body.page) && +req.body.page > 1) {
uri += "&per_page=" + githubConfig.repos_per_page + "&page=" + req.body.page
uri += "&page=" + req.body.page
}

uri += "&per_page=" + githubConfig.repos_per_page

var options = {
headers: headers
, uri: uri
Expand Down

0 comments on commit 524304b

Please sign in to comment.