From: Joey Hess Date: Fri, 12 Dec 2008 20:08:06 +0000 (-0500) Subject: avoid unnecessary variable X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/2a7849b8385c21dfa8a6f764a5e2cf8ea5f97070?hp=0ced5995d531ed108a2eec8cee7a3586cd757add 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) {