summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/rest_client.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/extra/rest_client.rb b/extra/rest_client.rb
index 90a64e4..35d93ae 100644
--- a/extra/rest_client.rb
+++ b/extra/rest_client.rb
@@ -16,11 +16,9 @@ module Oxidized
CFGS.load
rescue => error
raise InvalidConfig, "Error loading config: #{error.message}"
- ensure
- CFG = CFGS.cfg
end
- restcfg = CFG.rest
+ restcfg = CFGS.cfg.rest
unless restcfg.match(/^http:\/\//)
restcfg.insert(0, 'http://')
end