diff options
author | Go MAEDA <maeda@farend.jp> | 2024-08-25 08:44:33 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-08-25 08:44:33 +0000 |
commit | fdd90bab2b02d6fdd08a860808560eb2cf382af6 (patch) | |
tree | bcf26941dbc0fc8a0a6542f35d9fd5a92e1b5aa1 /app/models/repository | |
parent | fd83e97b135ee8affedf57f18952bce30271fc2e (diff) | |
download | redmine-fdd90bab2b02d6fdd08a860808560eb2cf382af6.tar.gz redmine-fdd90bab2b02d6fdd08a860808560eb2cf382af6.zip |
Fix RuboCop offenses Style/NegatedIf and Style/NegatedWhile (#39887, #7770).
git-svn-id: https://svn.redmine.org/redmine/trunk@22987 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r-- | app/models/repository/cvs.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/repository/cvs.rb b/app/models/repository/cvs.rb index 45ca9fbe8..a5fce91bb 100644 --- a/app/models/repository/cvs.rb +++ b/app/models/repository/cvs.rb @@ -52,7 +52,7 @@ class Repository::Cvs < Repository def scm_entries(path=nil, identifier=nil) rev = nil - if ! identifier.nil? + unless identifier.nil? rev = changesets.find_by_revision(identifier) return nil if rev.nil? end @@ -80,7 +80,7 @@ class Repository::Cvs < Repository def cat(path, identifier=nil) rev = nil - if ! identifier.nil? + unless identifier.nil? rev = changesets.find_by_revision(identifier) return nil if rev.nil? end @@ -89,7 +89,7 @@ class Repository::Cvs < Repository def annotate(path, identifier=nil) rev = nil - if ! identifier.nil? + unless identifier.nil? rev = changesets.find_by_revision(identifier) return nil if rev.nil? end |