diff options
-rw-r--r-- | .rubocop_todo.yml | 1 | ||||
-rw-r--r-- | app/models/repository/cvs.rb | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a12c36736..ef0bcf22b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1194,7 +1194,6 @@ Style/LineEndConcatenation: # Configuration parameters: IgnoredMethods. Style/MethodCallWithoutArgsParentheses: Exclude: - - 'app/models/repository/cvs.rb' - 'lib/redmine/export/pdf.rb' - 'lib/redmine/helpers/gantt.rb' - 'lib/redmine/scm/adapters/cvs_adapter.rb' diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb index c2f9fed25..d4fbb7267 100644 --- a/app/models/repository/cvs.rb +++ b/app/models/repository/cvs.rb @@ -58,7 +58,7 @@ class Repository::Cvs < Repository end entries = scm.entries(path, rev.nil? ? nil : rev.committed_on) if entries - entries.each() do |entry| + entries.each do |entry| if ( ! entry.lastrev.nil? ) && ( ! entry.lastrev.revision.nil? ) change = filechanges.where( :revision => entry.lastrev.revision, @@ -101,7 +101,7 @@ class Repository::Cvs < Repository if rev_to.to_i > 0 changeset_to = changesets.find_by_revision(rev_to) end - changeset_from.filechanges.each() do |change_from| + changeset_from.filechanges.each do |change_from| revision_from = nil revision_to = nil if path.nil? || (change_from.path.starts_with? scm.with_leading_slash(path)) @@ -109,7 +109,7 @@ class Repository::Cvs < Repository end if revision_from if changeset_to - changeset_to.filechanges.each() do |change_to| + changeset_to.filechanges.each do |change_to| revision_to = change_to.revision if change_to.path == change_from.path end end |