[SCM] ci-tooling packaging branch, master, updated. 35277096009b100c57e0ab254be94b0a2e2756f2

Harald Sitter apachelogger-guest at moszumanska.debian.org
Mon Dec 7 12:57:50 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=00c6741

The following commit has been merged in the master branch:
commit 00c6741ebb5797fa5e17a647e4797cf0e14c6b27
Author: Harald Sitter <sitter at kde.org>
Date:   Mon Dec 7 13:37:56 2015 +0100

    reduce usless line count
---
 lib/lp.rb | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/lib/lp.rb b/lib/lp.rb
index 3b4241c..10ad54f 100644
--- a/lib/lp.rb
+++ b/lib/lp.rb
@@ -106,9 +106,7 @@ module Launchpad
     site_options = { scheme: :header, site: 'https://api.launchpad.net' }
     consumer = OAuth::Consumer.new('kubuntu-ci', '',
                                    consumer_options.merge(site_options))
-    access_token = OAuth::AccessToken.from_hash(consumer, token_hash)
-    @token = access_token
-    @token
+    @token = OAuth::AccessToken.from_hash(consumer, token_hash)
   end
 
   # HTTP GET. Possibly via token.
@@ -116,8 +114,7 @@ module Launchpad
   # @param uri [URI] to get
   # @return [String] body of response
   def self.get(uri)
-    token = Launchpad.token
-    if token
+    if (token = Launchpad.token)
       # Token internally URIfies again without checking if it already has
       # a URI, so simply give it a string...
       Retry.retry_it(times: 2, sleep: 8) do

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list