rspec/rules/S2761/vbnet/rule.adoc

16 lines
403 B
Plaintext
Raw Normal View History

2021-01-27 13:42:22 +01:00
Calling the ``++Not++`` operator twice does nothing: the second invocation undoes the first. Either this is a bug, if the operator was actually meant to be called once, or misleading if done on purpose.
2020-06-30 12:48:07 +02:00
== Noncompliant Code Example
----
Dim b As Boolean = False
Dim c As Boolean = Not Not b 'Noncompliant
----
== Compliant Solution
----
Dim b As Boolean = False
Dim c As Boolean = b 'Compliant
----