rspec/rules/S4143/description.adoc
cynthiabethea 92896e4956
Modify-S4131-layc (#2537)
Small wording change

## Review

A dedicated reviewer checked the rule description successfully for:

- [ ] logical errors and incorrect information
- [ ] information gaps and missing content
- [ ] text style and tone
- [ ] PR summary and labels follow [the
guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)
2023-07-20 13:15:30 +01:00

4 lines
330 B
Plaintext

:intro: Storing a value inside a collection at a given key or index and then unconditionally overwriting it without reading the initial value is a case of a "dead store".
:outro: This practice is redundant and will cause confusion for the reader. More importantly, it is often an error and not what the developer intended to do.