mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-11 08:08:12 +01:00
Simplify a loop in process_actions2()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
7cbf113ba0
commit
676af32ebc
@ -1488,13 +1488,9 @@ sub process_actions2 () {
|
||||
|
||||
my $ref;
|
||||
|
||||
for my $option ( @auditoptions ) {
|
||||
my $action = $config{ $option };
|
||||
|
||||
if ( $auditactions{$action} ) {
|
||||
if ( $ref = use_action( normalize_action_name $action ) ) {
|
||||
process_action( $ref );
|
||||
}
|
||||
for ( map normalize_action_name $_ , ( grep $auditactions{$_}, ( map $config{$_}, @auditoptions ) ) ) {
|
||||
if ( $ref = use_action( $_ ) ) {
|
||||
process_action( $ref );
|
||||
}
|
||||
}
|
||||
|
||||
@ -1504,6 +1500,7 @@ sub process_actions2 () {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
################################################################################
|
||||
# End of functions moved from the Actions module in 4.4.16
|
||||
################################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user