Skip to content

Commit

Permalink
Don't need to split a list for extensions
Browse files Browse the repository at this point in the history
because its a YAML file which has list support alreadty.
  • Loading branch information
doddo committed Dec 24, 2018
1 parent 4a966b5 commit fe877ff
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
7 changes: 0 additions & 7 deletions bin/plerdall
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,6 @@ foreach (qw( base_uri image ) ) {
}
}


my @extensions = $config_ref->{ extensions }
? split(',', $config_ref->{ extensions })
: ();

$config_ref->{ extensions } = \@extensions;

my $plerd = Plerd->new( $config_ref );

if ( $rebuild_webmentions ) {
Expand Down
7 changes: 0 additions & 7 deletions bin/plerdwatcher
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ foreach (qw( base_uri image ) ) {
}
}

my @extensions = $config_ref->{ extensions }
? split(',', $config_ref->{ extensions })
: ();

$config_ref->{ extensions } = \@extensions;


my $plerd;
my $watcher;
try {
Expand Down
1 change: 1 addition & 0 deletions lib/Plerd.pm
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ sub _build_posts {
foreach my $trigger (keys %{$triggers}) {
if ($file =~ m/\.$trigger$/i) {
push @posts, $$triggers{$trigger}->new(plerd => $self, source_file => $file);
last;
}
}
}
Expand Down

0 comments on commit fe877ff

Please sign in to comment.