1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

code cleanup: rubocop: fix Layout/EmptyLines in app/models/issue.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18735 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-19 04:30:13 +00:00
parent 27e30a9701
commit c1e7c43cd4
2 changed files with 0 additions and 3 deletions

View File

@ -104,7 +104,6 @@ Layout/EmptyLineAfterGuardClause:
# Cop supports --auto-correct. # Cop supports --auto-correct.
Layout/EmptyLines: Layout/EmptyLines:
Exclude: Exclude:
- 'app/models/issue.rb'
- 'app/models/time_entry_import.rb' - 'app/models/time_entry_import.rb'
- 'config/routes.rb' - 'config/routes.rb'
- 'db/migrate/001_setup.rb' - 'db/migrate/001_setup.rb'

View File

@ -578,8 +578,6 @@ class Issue < ActiveRecord::Base
if (u = attrs.delete('assigned_to_id')) && safe_attribute?('assigned_to_id') if (u = attrs.delete('assigned_to_id')) && safe_attribute?('assigned_to_id')
self.assigned_to_id = u self.assigned_to_id = u
end end
attrs = delete_unsafe_attributes(attrs, user) attrs = delete_unsafe_attributes(attrs, user)
return if attrs.empty? return if attrs.empty?