lib/aws_recon/collectors/codepipeline.rb in aws_recon-0.2.27 vs lib/aws_recon/collectors/codepipeline.rb in aws_recon-0.2.28
- old
+ new
@@ -1,5 +1,10 @@
+# frozen_string_literal: true
+
+#
+# Collect CodePipeline resources
+#
class CodePipeline < Mapper
#
# Returns an array of resources.
#
def collect
@@ -23,12 +28,10 @@
end
end
rescue Aws::CodePipeline::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
end