bin/check-s3-object.rb in sensu-plugins-aws-3.0.0 vs bin/check-s3-object.rb in sensu-plugins-aws-3.1.0

- old
+ new

@@ -85,11 +85,10 @@ long: '--critical SECONDS' def aws_config { access_key_id: config[:aws_access_key], secret_access_key: config[:aws_secret_access_key], - region: config[:aws_region] - } + region: config[:aws_region] } end def run_check(type, age) to_check = config["#{type}_age".to_sym].to_i if to_check > 0 && age >= to_check # rubocop:disable GuardClause