lib/chef/knife/topo/command_helper.rb in knife-topo-2.0.3 vs lib/chef/knife/topo/command_helper.rb in knife-topo-2.0.4
- old
+ new
@@ -60,10 +60,10 @@
chef_env.create
chef_env
end
def most_common(vals)
- return if vals.length == 0
+ return if vals.empty?
vals.group_by do |val|
val
end.values.max_by(&:size).first
end
end