always call setup
This commit is contained in:
parent
c2e06293a0
commit
73eea4d51b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user