mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Replace a 'next' statement that exits a subroutine with a 'return'.
Ref pandora_enterprise#1733.
This commit is contained in:
parent
932f6ce0cf
commit
600c43935d
@ -198,7 +198,7 @@ sub pandora_snmptrapd {
|
||||
(my $trap_ver, $line) = split(/\[\*\*\]/, $line, 2);
|
||||
|
||||
# Process SNMP filter
|
||||
next if (matches_filter ($dbh, $pa_config, $line) == 1);
|
||||
return if (matches_filter ($dbh, $pa_config, $line) == 1);
|
||||
|
||||
logger($pa_config, "Reading trap '$line'", 10);
|
||||
my ($date, $time, $source, $oid, $type, $type_desc, $value, $data) = ('', '', '', '', '', '', '', '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user