From 2f5258c1b88ce1aefd13c33e5facf7ad55419e91 Mon Sep 17 00:00:00 2001 From: "transifex-integration[bot]" <43880903+transifex-integration[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 06:49:37 +0000 Subject: [PATCH] Translate DoubleNegatives.md in en 100% translated source file: 'DoubleNegatives.md' on 'en'. --- docs/en/diagnostics/DoubleNegatives.md | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/docs/en/diagnostics/DoubleNegatives.md b/docs/en/diagnostics/DoubleNegatives.md index 3a6b3059d40..65eea5b15f4 100644 --- a/docs/en/diagnostics/DoubleNegatives.md +++ b/docs/en/diagnostics/DoubleNegatives.md @@ -1,28 +1,5 @@ # Double negatives (DoubleNegatives) -## Description -Using double negatives complicates the understanding of the code and can lead to errors when instead of truth the developer "in his mind" calculated False, or vice versa. It is recommended to replace double negatives with conditions that directly express the author's intentions. - -## Examples - -### Wrong - -```bsl -If Not ValueTable.Find(ValueToSearch, "Column") <> Undefined Тогда - // Act -EndIf; -``` - -### Correct - -```bsl -If ValueTable.Find(ValueToSearch, "Column") = Undefined Тогда - // Act -EndIf; -``` - -## Sources - -* Источник: [Remove double negative](https://www.refactoring.com/catalog/removeDoubleNegative.html) +* Description