1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

Fix Style/ZeroLengthPredicate

This commit is contained in:
William Johnston 2016-02-28 17:27:15 -06:00
parent 00ce09752e
commit 102c43f861

View file

@ -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)