Skip to content

Commit 2393e60

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 an else.
1 parent 70324c6 commit 2393e60

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
@@ -254,7 +254,8 @@ sub generate_proto_h {
254254
die_at_end 'm flag required for "literal" argument'
255255
unless $has_mflag;
256256
}
257-
elsif ( $args_assert_line
257+
else {
258+
if ( $args_assert_line
258259
&& $arg =~ /\*/
259260
&& $arg !~ /\b(NN|NULLOK)\b/ )
260261
{
@@ -298,6 +299,7 @@ sub generate_proto_h {
298299
push @asserts, "assert($type_assert)";
299300
}
300301
}
302+
}
301303
}
302304
$ret .= join ", ", @$args;
303305
}

0 commit comments

Comments
 (0)