mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
cleanup: rubocop: fix Style/MethodCallWithoutArgsParentheses in app/models/repository/cvs.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18954 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
660d4fd546
commit
08918ce867
@ -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'
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user