From aaebab85c5c956a9018fde0f04f6f8d3a38cb1fd Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 5 Nov 2020 13:42:31 +0000 Subject: [PATCH] add empty line after guard clause to app/models/version.rb git-svn-id: http://svn.redmine.org/redmine/trunk@20264 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/version.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/version.rb b/app/models/version.rb index 15214b52f..1f235e0ea 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -167,10 +167,9 @@ class Version < ActiveRecord::Base if attrs.respond_to?(:to_unsafe_hash) attrs = attrs.to_unsafe_hash end - return unless attrs.is_a?(Hash) - attrs = attrs.deep_dup + attrs = attrs.deep_dup # Reject custom fields values not visible by the user if attrs['custom_field_values'].present? editable_custom_field_ids = editable_custom_field_values(user).map {|v| v.custom_field_id.to_s}