Skip to content

Commit 74d41b1

Browse files
committed
Use all? method to check exclusive parameters
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent 6574dea commit 74d41b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fluent/plugin/filter_concat.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def configure(conf)
6868
super
6969

7070
params, names = required_params
71-
if params.reject{|e| e == true}.empty?
71+
if params.all?
7272
raise Fluent::ConfigError, "Either #{[names[0..-2].join(", "), names[-1]].join(" or ")} is required"
7373
end
7474
if @n_lines && (@multiline_start_regexp || @multiline_end_regexp)

0 commit comments

Comments
 (0)