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( $ ) {
|
||||
$first_entry = $_[0];
|
||||
my $reftype = reftype $first_entry;
|
||||
if ( $reftype ) {
|
||||
fatal_error "Invalid argument to first_entry()" unless $reftype eq 'CODE';
|
||||
}
|
||||
assert( $reftype eq 'CODE' ) if $reftype;
|
||||
}
|
||||
|
||||
sub read_a_line(;$);
|
||||
|
Loading…
Reference in New Issue
Block a user