calling a procedure without parameters should have empty ()
This commit is contained in:
parent
34c84872b8
commit
0fde42cc6e
1 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ weight = 1270
|
|||
```al
|
||||
procedure SomeProcedure()
|
||||
begin
|
||||
if IsAdjmtBinCodeChanged then
|
||||
if IsAdjmtBinCodeChanged() then
|
||||
Error(AdjmtBinCodeChangeNotAllowedErr,...)
|
||||
else
|
||||
Error(BinCodeChangeNotAllowedErr,...);
|
||||
|
|
@ -24,7 +24,7 @@ weight = 1270
|
|||
```al
|
||||
procedure SomeProcedure()
|
||||
begin
|
||||
if IsAdjmtBinCodeChanged then
|
||||
if IsAdjmtBinCodeChanged() then
|
||||
Error(AdjmtBinCodeChangeNotAllowedErr,...)
|
||||
Error(BinCodeChangeNotAllowedErr,...);
|
||||
end;
|
||||
|
|
@ -35,4 +35,4 @@ weight = 1270
|
|||
|
||||
You can find discussions on all "Best Practices" [here](https://github.com/microsoft/alguidelines/discussions/categories/bc-best-practices).
|
||||
|
||||
If you don't find the discussion of this guideline, please feel fee to create a new one with the same title as this article.
|
||||
If you don't find the discussion of this guideline, please feel fee to create a new one with the same title as this article.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue