]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
statements can just run inline.
authorAlan T. DeKok <aland@freeradius.org>
Fri, 24 Feb 2023 20:56:56 +0000 (15:56 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 24 Feb 2023 21:14:19 +0000 (16:14 -0500)
There's no need to wrap them in "if" statements

src/tests/keywords/policy.conf
src/tests/process/share/test/dictionary [moved from src/tests/process/dictionary with 100% similarity]

index add5ffd419c903645cdfce2bf59b43ffa00b982a..284a69768221cd3d44897072b85b0fd9eed2a743 100644 (file)
@@ -6,27 +6,21 @@
 #  Outputs the contents of the control list in debugging (-X) mode
 #
 debug_control {
-       if("%(debug_attr:&control.[*])" == '') {
-               noop
-       }
+       %(debug_attr:&control.[*])
 }
 
 #
 #  Outputs the contents of the request list in debugging (-X) mode
 #
 debug_request {
-       if("%(debug_attr:&request.[*])" == '') {
-               noop
-       }
+       %(debug_attr:&request.[*])
 }
 
 #
 #  Outputs the contents of the reply list in debugging (-X) mode
 #
 debug_reply {
-       if("%(debug_attr:&reply.[*])" == '') {
-               noop
-       }
+       %(debug_attr:&reply.[*])
 }
 
 #