updated to darker color
This commit is contained in:
parent
bd7ea0e118
commit
ccdaa1e08e
20 changed files with 57 additions and 57 deletions
|
|
@ -9,25 +9,25 @@ _Created by Microsoft, Described by waldo_
|
|||
## Description
|
||||
Do not use `true` or `false` keywords unnecessarily if the expression is already an logical expression.
|
||||
|
||||
## <span style="color:red">Bad code</span>
|
||||
## <span style="color:FireBrick">Bad code</span>
|
||||
|
||||
```al
|
||||
if IsPositive() = true then
|
||||
```
|
||||
|
||||
## <span style="color:lime">Good code</span>
|
||||
## <span style="color:ForestGreen">Good code</span>
|
||||
|
||||
```al
|
||||
if IsPositive() then
|
||||
```
|
||||
|
||||
## <span style="color:red">Bad code</span>
|
||||
## <span style="color:FireBrick">Bad code</span>
|
||||
|
||||
```al
|
||||
if Complete <> true then
|
||||
```
|
||||
|
||||
## <span style="color:lime">Good code</span>
|
||||
## <span style="color:ForestGreen">Good code</span>
|
||||
|
||||
```al
|
||||
if not Complete then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue