Simplify an assertion

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-04-11 14:27:48 -07:00
parent e880d2fd84
commit ae9f538ef8

View File

@ -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(;$);