
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
19 lines
273 B
Plaintext
19 lines
273 B
Plaintext
Replace the operators with a single one if that is the intention
|
|
|
|
[source,kotlin]
|
|
----
|
|
var target = -5
|
|
val num = 3
|
|
|
|
target -= num // target = -8
|
|
----
|
|
|
|
Or fix the spacing to avoid confusion
|
|
|
|
[source,kotlin]
|
|
----
|
|
var target = -5
|
|
val num = 3
|
|
|
|
target = -num // target = -3
|
|
---- |