Code cleanup: RuboCop: Fix Performance/InefficientHashSearch

git-svn-id: http://svn.redmine.org/redmine/trunk@18423 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2019-09-03 07:42:05 +00:00
parent 0a5fb62d6d
commit ef856653ac
6 changed files with 6 additions and 15 deletions

View File

@@ -153,7 +153,7 @@ class TimelogCustomFieldsVisibilityTest < Redmine::ControllerTest
}
Member.where(:project_id => 1).each do |member|
member.destroy unless @users_to_test.keys.include?(member.principal)
member.destroy unless @users_to_test.key?(member.principal)
end
end
end