From 102c43f8617e1d710764f08b122e0fcccb728e89 Mon Sep 17 00:00:00 2001 From: William Johnston Date: Sun, 28 Feb 2016 17:27:15 -0600 Subject: [PATCH] Fix Style/ZeroLengthPredicate --- lib/capistrano/configuration/filter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/configuration/filter.rb b/lib/capistrano/configuration/filter.rb index 1f726789..25b7a185 100644 --- a/lib/capistrano/configuration/filter.rb +++ b/lib/capistrano/configuration/filter.rb @@ -11,7 +11,7 @@ module Capistrano raise "Invalid filter type #{type}" unless [:host, :role].include? type av = Array(values) @strategy = case - when av.size == 0 then EmptyFilter.new + when av.empty? then EmptyFilter.new when av.include?(:all), av.include?("all") then NullFilter.new when type == :host then HostFilter.new(values) when type == :role then RoleFilter.new(values)