Skip to content

Commit

Permalink
Remove redundant parentheses inside operators
Browse files Browse the repository at this point in the history
GNAT already emits a style warning when redundant parentheses appear inside logical and short-circuit operators; this warning will be soon emitted for other operators as well.
  • Loading branch information
ptroja authored Jan 8, 2025
1 parent 309b633 commit bdd1898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alire/alire-properties-scenarios.adb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ package body Alire.Properties.Scenarios is
if Val.Kind = TOML_String then
if Val.As_String = "" then
Props := Props and
(New_Property (GPR.Free_Variable (Key)));
New_Property (GPR.Free_Variable (Key));
else
Table.Checked_Error
("free scenario variable must be given as """"");
Expand Down

0 comments on commit bdd1898

Please sign in to comment.