Skip to content

Commit

Permalink
Pod::Html: assign directly to array ref
Browse files Browse the repository at this point in the history
This restores the thrust of c0ac281, which got zapped when resolving
merge conflicts.
  • Loading branch information
jkeenan committed Aug 20, 2021
1 parent bea6fd2 commit d6b4dc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/Pod-Html/lib/Pod/Html.pm
Expand Up @@ -325,7 +325,9 @@ sub init_globals {
sub process_options {
my ($self, $opts) = @_;

@{$self->{Podpath}} = split(":", $opts->{podpath}) if defined $opts->{podpath};
$self->{Podpath} = (defined $opts->{podpath})
? [ split(":", $opts->{podpath}) ]
: [];

$self->{Backlink} = $opts->{backlink} if defined $opts->{backlink};
$self->{Cachedir} = unixify($opts->{cachedir}) if defined $opts->{cachedir};
Expand Down

0 comments on commit d6b4dc2

Please sign in to comment.