Skip to content

Commit ee8c0b0

Browse files
committed
regen/embed.pl: Skip unnecessary code
If an argument is a literal string, it's not going to be anything else, so convert an elsif to and else.
1 parent 3812ecc commit ee8c0b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

regen/embed.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ sub generate_proto_h {
245245
die_at_end 'm flag required for "literal" argument'
246246
unless $has_mflag;
247247
}
248-
elsif ( $args_assert_line
248+
else {
249+
if ( $args_assert_line
249250
&& $arg =~ /\*/
250251
&& $arg !~ /\b(NN|NULLOK)\b/ )
251252
{
@@ -289,6 +290,7 @@ sub generate_proto_h {
289290
push @asserts, "assert($type_assert)";
290291
}
291292
}
293+
}
292294
}
293295
$ret .= join ", ", @$args;
294296
}

0 commit comments

Comments
 (0)