]> source.dussan.org Git - redmine.git/commitdiff
add empty line after guard clause to app/models/version.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:42:31 +0000 (13:42 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 5 Nov 2020 13:42:31 +0000 (13:42 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20264 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/version.rb

index 15214b52f358c8ccabd21e5ff807544c87313ee7..1f235e0ea45118b2db8a84b44bfed7320d5f7524 100644 (file)
@@ -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}