Browse Source

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
tags/4.1.0
Toshi MARUYAMA 4 years ago
parent
commit
c1e7c43cd4
2 changed files with 0 additions and 3 deletions
  1. 0
    1
      .rubocop_todo.yml
  2. 0
    2
      app/models/issue.rb

+ 0
- 1
.rubocop_todo.yml View File

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

+ 0
- 2
app/models/issue.rb View File

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


attrs = delete_unsafe_attributes(attrs, user)
return if attrs.empty?


Loading…
Cancel
Save