mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 20:24:09 +01:00
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