From 1b9a9be8e88cc22f27fc2daf95f918a595e95a86 Mon Sep 17 00:00:00 2001 From: Katie McLaughlin Date: Fri, 3 Oct 2014 13:02:24 +1000 Subject: [PATCH] accessor caching is important, yo --- lib/github-release.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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