lib/logstasher/device/redis.rb in logstasher-2.1.1 vs lib/logstasher/device/redis.rb in logstasher-2.1.2

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'redis' module LogStasher module Device class Redis @@ -20,10 +22,10 @@ end def redis_options unless @redis_options default_keys = default_options.keys - @redis_options = options.select { |k, _v| !default_keys.include?(k) } + @redis_options = options.reject { |k, _v| default_keys.include?(k) } end @redis_options end