diff --git a/lib/github-release.rb b/lib/github-release.rb index 275da58..04e4658 100644 --- a/lib/github-release.rb +++ b/lib/github-release.rb @@ -16,9 +16,7 @@ def run private def api - @api ||= Octokit::Client.new(:access_token => token) - @api.auto_paginate = true - @api + @api ||= Octokit::Client.new(:access_token => token, :auto_paginate => true) end def token