calling a procedure without parameters should have empty ()

This commit is contained in:
Stefan Maroń 2021-12-15 07:59:20 +01:00 committed by GitHub
parent 34c84872b8
commit 0fde42cc6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.