Fix Style/CaseEquality
when AllowOnConstant
is true
#7882
Merged
Style/CaseEquality
when AllowOnConstant
is true
#7882