DEV: Apply syntax_tree formatting to lib/*

This commit is contained in:
David Taylor
2023-01-09 12:10:19 +00:00
parent b0fda61a8e
commit 6417173082
507 changed files with 16550 additions and 12627 deletions

View File

@ -33,11 +33,8 @@ module HasErrors
def add_errors_from(obj)
return if obj.blank?
if obj.is_a?(StandardError)
return add_error(obj.message)
end
return add_error(obj.message) if obj.is_a?(StandardError)
obj.errors.full_messages.each { |msg| add_error(msg) }
end
end