Skip to content

Commit

Permalink
More straightforward call to clean the nil
Browse files Browse the repository at this point in the history
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
  • Loading branch information
andsel and jsvd committed Jun 26, 2023
1 parent a914f5b commit 19b1da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logstash-core/lib/logstash/api/modules/logging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def handle_logging(settings)
else
[key, level]
end
end.select {|value| !value.nil?} # skip nil which result in ArgumentError since JRuby 9.4
end.reject {|value| value.nil?} # skip nil which result in ArgumentError since JRuby 9.4
Hash[couplesList]
end

Expand Down

0 comments on commit 19b1da5

Please sign in to comment.