tazel
A build system for C, C++, Objective-C, Objective-C++ and Zig, with C# project files.
Clonegit clone https://git.progmasoft.com/tazel
Name the operand of Logical after its type
- Commit
279d18ffc0a18705de491eaf24cde8975de07d82- Author
- Leitwolf11 ·
- Parents
cd0f0271c715
Changes
src/Progmasoft.Tazel/Dsl/Configuration/Conditions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Progmasoft.Tazel/Dsl/Configuration/Conditions.cs b/src/Progmasoft.Tazel/Dsl/Configuration/Conditions.cs index 224847d..54d16f3 100644 --- a/src/Progmasoft.Tazel/Dsl/Configuration/Conditions.cs +++ b/src/Progmasoft.Tazel/Dsl/Configuration/Conditions.cs @@ -380,16 +380,16 @@ public static class ConditionEvaluator }; // && and ||: the first side decides when it can; an unknown first side decides only with the second. - private bool? Logical(BinaryCondition logical) + private bool? Logical(BinaryCondition binary) { - var decides = logical.Operator == "||"; - var left = Value(logical.Left) as bool?; + var decides = binary.Operator == "||"; + var left = Value(binary.Left) as bool?; if (left == decides) { return decides; } - var right = Value(logical.Right) as bool?; + var right = Value(binary.Right) as bool?; return left is null ? (right == decides ? decides : null) : right; }