Skip to content

Commit

Permalink
accessor caching is important, yo
Browse files Browse the repository at this point in the history
  • Loading branch information
glasnt committed Oct 3, 2014
1 parent 4f78e0b commit 1b9a9be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/github-release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b9a9be

Please sign in to comment.