forked from extern/shorewall_code
Simplify an assertion
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e880d2fd84
commit
ae9f538ef8
@ -1950,9 +1950,7 @@ sub shorewall {
|
|||||||
sub first_entry( $ ) {
|
sub first_entry( $ ) {
|
||||||
$first_entry = $_[0];
|
$first_entry = $_[0];
|
||||||
my $reftype = reftype $first_entry;
|
my $reftype = reftype $first_entry;
|
||||||
if ( $reftype ) {
|
assert( $reftype eq 'CODE' ) if $reftype;
|
||||||
fatal_error "Invalid argument to first_entry()" unless $reftype eq 'CODE';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub read_a_line(;$);
|
sub read_a_line(;$);
|
||||||
|
Loading…
Reference in New Issue
Block a user