From 90a6753d880f36ac22343c1c8a3f5d5e8cdaaf85 Mon Sep 17 00:00:00 2001 From: Garret Alfert Date: Tue, 6 Sep 2016 16:36:43 +0200 Subject: [PATCH] Use container path directly, instead of hiding it behind a method --- lib/remote_storage/swift.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/remote_storage/swift.rb b/lib/remote_storage/swift.rb index 44721f5..467cd44 100644 --- a/lib/remote_storage/swift.rb +++ b/lib/remote_storage/swift.rb @@ -386,7 +386,7 @@ module RemoteStorage if container_migration(user) "#{base_url}/rs:#{settings.environment.to_s.chars.first}:#{user}" else - "#{base_url}/#{container_for(user)}" + "#{base_url}/rs:documents:#{settings.environment.to_s}/#{user}" end end @@ -398,10 +398,6 @@ module RemoteStorage @base_url ||= settings.swift["host"] end - def container_for(user) - "rs:documents:#{settings.environment.to_s}/#{user}" - end - def container_migration(user) redis.get("rs:container_migration:#{user}") end