mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 22:58:52 +01:00
Minor cleanup of split_columns()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
8507c97b5a
commit
8b90827611
@ -2232,7 +2232,7 @@ sub split_list4( $ ) {
|
||||
sub split_columns( $ ) {
|
||||
my ($list) = @_;
|
||||
|
||||
return split ' ', $list unless $list =~ /\(/;
|
||||
return split ' ', $list unless $list =~ /[()]/;
|
||||
|
||||
my @list1 = split ' ', $list;
|
||||
my @list2;
|
||||
@ -2273,9 +2273,7 @@ sub split_columns( $ ) {
|
||||
}
|
||||
}
|
||||
|
||||
unless ( $opencount == 0 ) {
|
||||
fatal_error "Mismatched parentheses ($list)";
|
||||
}
|
||||
fatal_error "Mismatched parentheses ($list)" unless $opencount == 0;
|
||||
|
||||
@list2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user