rspec/rules/S2437/vbnet/rule.adoc

4 lines
253 B
Plaintext
Raw Normal View History

2021-01-21 04:09:13 +00:00
Certain bit operations are just silly and should not be performed because their results are predictable.
2021-01-27 13:42:22 +01:00
Specifically, using ``++AnyValue And -1++`` will always result in the original value, as will ``++AnyValue Xor 0++`` and ``++AnyValue Or 0++``.