Cleanup and fix link

This commit is contained in:
Henrik Helgesen 2022-02-21 23:29:23 -08:00
parent 22bceb1484
commit eb783b94ff
2 changed files with 12 additions and 13 deletions

View file

@ -7,6 +7,7 @@ categories: ["Best Practice"]
_Created by Microsoft, Described by waldo_
## Description
`else` should not be used when the last action in the `then` part is an `exit`, `break`, `skip`, `quit`, `error`.
## Bad code
@ -22,6 +23,7 @@ _Created by Microsoft, Described by waldo_
```
## Good code
```al
procedure SomeProcedure()
begin
@ -31,7 +33,6 @@ _Created by Microsoft, Described by waldo_
end;
```
## [Discussions](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices?discussions_q=unnecessary+else+category%3A%22BC+Best+Practices%22)
You can find discussions on all "Best Practices" [here](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices).

View file

@ -1,14 +1,12 @@
+++
chapter = true
pre = "<b><i class='fas fa-clone'></i> </b>"
title = "Templates"
weight = 100
+++
---
title: "Templates"
---
# Templates
We have created some template-files that you can simply copy and use. Look at them as "Patterns for describing patterns"
We have foreseen some template-files that you can simply copy and use. Look at them as "Patterns for describing patterns" 😉.
We currently offer the following templates:
We have foreseen a Template:
- for [patterns](/contributing/templates/patterns/)
- for [guidelines](/contributing/templates/guidelines/)
- for [Patterns](/contributing/templates/patterns/) ([raw](https://raw.githubusercontent.com/microsoft/alguidelines/main/content/docs/Contributing/Templates/Patterns/index.md))
- for [Best Practice](/contributing/templates/bestpractice/) ([raw](https://raw.githubusercontent.com/microsoft/alguidelines/main/content/docs/Contributing/Templates/BestPractice/index.md))
opening the "raw" link, will allow for the best copy/paste result.