(RE-7014) statsd nitpicks and additional rspec

Cleaned up some code review nitpicks and added pool_manager_spec for empty pool.
This commit is contained in:
Rick Sherman 2016-06-08 11:03:22 -05:00
parent b983472088
commit c133bed945
5 changed files with 39 additions and 23 deletions

View file

@ -88,7 +88,7 @@ module Vmpooler
end
def self.new_statsd(server, port)
if server.nil? or server.empty? or server.length == 0
if server.nil? || server.empty?
nil
else
Statsd.new server, port