lib/aws_recon/collectors/s3.rb in aws_recon-0.2.26 vs lib/aws_recon/collectors/s3.rb in aws_recon-0.2.27

- old
+ new

@@ -1,5 +1,10 @@ +# frozen_string_literal: true + +# +# Collect S3 Resources +# class S3 < Mapper # # Returns an array of resources. # # Since S3 is a global service, the bucket operation calls @@ -61,12 +66,10 @@ end rescue Aws::S3::Errors::ServiceError => e log_error(e.code) - unless suppressed_errors.include?(e.code) && !@options.quit_on_exception - raise e - end + raise e unless suppressed_errors.include?(e.code) && !@options.quit_on_exception end resources.push(struct.to_h) end end