From 75f5fa997de148c9bc0e5bd6e6f6050526a0b164 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Wed, 22 Feb 2017 11:51:46 -0600 Subject: Enable Rails/Delegate --- lib/bitbucket/connection.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/bitbucket') diff --git a/lib/bitbucket/connection.rb b/lib/bitbucket/connection.rb index 287410bf46f..b9279c33f5b 100644 --- a/lib/bitbucket/connection.rb +++ b/lib/bitbucket/connection.rb @@ -24,9 +24,7 @@ module Bitbucket response.parsed end - def expired? - connection.expired? - end + delegate :expired?, to: :connection def refresh! response = connection.refresh! -- cgit v1.2.3