avoid comparing a variable with multiple items at WorkflowTransition#replace_transitions

git-svn-id: http://svn.redmine.org/redmine/trunk@19846 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2020-07-03 11:12:14 +00:00
parent 11c1a3e027
commit b868a278b5

View File

@@ -50,7 +50,7 @@ class WorkflowTransition < WorkflowRule
end
w = w.first
if transition == "1" || transition == true
if ["1", true].include?(transition)
unless w
w = WorkflowTransition.
new(