Add a blank line after a guard clause

This commit is contained in:
Dosuken shinya 2017-03-23 10:37:27 +00:00
parent 1d75989551
commit b3375a4964

View file

@ -25,6 +25,7 @@ class PipelineSerializer < BaseSerializer
def represent_status(resource) def represent_status(resource)
return {} unless resource.present? return {} unless resource.present?
data = represent(resource, { only: [{ details: [:status] }] }) data = represent(resource, { only: [{ details: [:status] }] })
data.dig(:details, :status) || {} data.dig(:details, :status) || {}
end end