From 73eea4d51bcb77c675e060861ec0e87580effaff Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Mon, 22 Oct 2012 23:53:41 +0200 Subject: [PATCH] always call setup --- lib/travis/api/app.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index 6da5cfd0..94c51a4e 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -41,11 +41,11 @@ module Travis::Api # the environment, so no biggy. def self.setup(options = {}) setup! unless setup? - Endpoint.set(options) + Endpoint.set(options) if options end def self.new(options = {}) - setup(options) if options + setup(options) super() end