lib/memcacheauth.rb in memcache-auth-0.2.4 vs lib/memcacheauth.rb in memcache-auth-0.2.5
- old
+ new
@@ -14,10 +14,10 @@
opts = args.last.is_a?(Hash) ? args.pop : {}
servers = Array(
args.any? ? args.unshift : opts.delete(:servers)
).flatten.compact
- if !servers && ENV['MEMCACHE_SERVERS']
+ if servers.empty? && ENV['MEMCACHE_SERVERS']
servers = ENV['MEMCACHE_SERVERS'].split(',')
end
super(servers, opts)
end
end