Merge pull request #159 from christianbraeunlich/hotfix/indentation-in-best-practice

Added indentation for best practices
This commit is contained in:
Jeremy Vyska 2022-03-25 16:08:04 +01:00 committed by GitHub
commit 6dc0ae6f2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 24 deletions

View file

@ -26,4 +26,3 @@ When `begin` follows `then`, `else`, `do`, it should be on the same line, preced
...
end;
```

View file

@ -52,4 +52,3 @@ if X then begin
end else
(not X)
```

View file

@ -13,7 +13,7 @@ _Created by Microsoft, Described by waldo_
## Bad code
```al
if Atom = '\>' then HasLogicalOperator := true else begin
if Atom = '>' then HasLogicalOperator := true else begin
...
end;
```
@ -21,7 +21,7 @@ _Created by Microsoft, Described by waldo_
## Good code
```al
if Atom = '\>' then
if Atom = '>' then
HasLogicalOperator := true
else begin
...