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
This commit is contained in:
Go MAEDA
2024-08-25 08:44:33 +00:00
parent fd83e97b13
commit fdd90bab2b
13 changed files with 18 additions and 38 deletions

View File

@@ -81,7 +81,7 @@ module Redmine
}
}
if !thresh.empty?
unless thresh.empty?
link = links[thresh.length-1]
while link
mvector[link[1]] = link[2]