treewide: use modern syntax
authorJo-Philipp Wich <jo@mein.io>
Thu, 28 Apr 2022 19:41:13 +0000 (21:41 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 29 Apr 2022 12:54:27 +0000 (14:54 +0200)
commitb0b8122cbc055296c855a0e6445c0b64922a1874
treeaeb1b10dd6b79e9656433779e0cd859a3fbc85c2
parent05995f13d30aeee7ed03397eae2ad76e22cde785
treewide: use modern syntax

 - Use `||=` operator expressions instead of `expr = expr || value` patterns
 - Use optional chaining instead of `foo && foo.bar && foo.bar.baz` patterns
 - Use template strings instead of string concatenations or sprintf() calls
 - Use `const` for global default variables

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/firewall4/main.uc
root/usr/share/firewall4/templates/redirect.uc
root/usr/share/firewall4/templates/rule.uc
root/usr/share/firewall4/templates/ruleset.uc
root/usr/share/ucode/fw4.uc
tests/01_configuration/01_ruleset