From: Joey Hess Date: Fri, 12 Dec 2008 20:08:06 +0000 (-0500) Subject: avoid unnecessary variable X-Git-Tag: 2.71~85 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2a7849b8385c21dfa8a6f764a5e2cf8ea5f97070;p=ikiwiki.git avoid unnecessary variable --- diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index 0de7a6743..f612f8947 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -558,7 +558,7 @@ sub pagetemplate (@) { #{{{ eval q{use IkiWiki::Plugin::inline}; error($@) if $@; - my @args = ( + $comments = IkiWiki::preprocess_inline( pages => "internal($page/${comments_pagename}*)", template => 'comments_display', show => 0, @@ -568,7 +568,6 @@ sub pagetemplate (@) { #{{{ feedfile => 'comments', emptyfeeds => 'no', ); - $comments = IkiWiki::preprocess_inline(@args); } if (defined $comments && length $comments) {