mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Fix Style/ZeroLengthPredicate
This commit is contained in:
parent
00ce09752e
commit
102c43f861
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ module Capistrano
|
||||||
raise "Invalid filter type #{type}" unless [:host, :role].include? type
|
raise "Invalid filter type #{type}" unless [:host, :role].include? type
|
||||||
av = Array(values)
|
av = Array(values)
|
||||||
@strategy = case
|
@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 av.include?(:all), av.include?("all") then NullFilter.new
|
||||||
when type == :host then HostFilter.new(values)
|
when type == :host then HostFilter.new(values)
|
||||||
when type == :role then RoleFilter.new(values)
|
when type == :role then RoleFilter.new(values)
|
||||||
|
|
Loading…
Reference in a new issue