summaryrefslogtreecommitdiffstats
path: root/lib/redmine/string_array_diff/diff.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-08-25 08:44:33 +0000
committerGo MAEDA <maeda@farend.jp>2024-08-25 08:44:33 +0000
commitfdd90bab2b02d6fdd08a860808560eb2cf382af6 (patch)
treebcf26941dbc0fc8a0a6542f35d9fd5a92e1b5aa1 /lib/redmine/string_array_diff/diff.rb
parentfd83e97b135ee8affedf57f18952bce30271fc2e (diff)
downloadredmine-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 'lib/redmine/string_array_diff/diff.rb')
-rw-r--r--lib/redmine/string_array_diff/diff.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/string_array_diff/diff.rb b/lib/redmine/string_array_diff/diff.rb
index 4b54fb740..4540f1e72 100644
--- a/lib/redmine/string_array_diff/diff.rb
+++ b/lib/redmine/string_array_diff/diff.rb
@@ -81,7 +81,7 @@ module Redmine
}
}
- if !thresh.empty?
+ unless thresh.empty?
link = links[thresh.length-1]
while link
mvector[link[1]] = link[2]