From: Joey Hess Date: Mon, 26 Jan 2009 18:21:33 +0000 (-0500) Subject: another useless use of scalar X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/c5642119f7fafdafdaff05c0d37e787de221e9e2?ds=sidebyside another useless use of scalar scalar(undef) is undef, so using scalar here had no effect. Instead make the function return "", probably avoiding an uninitialized value warning. --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 7dfa52f57..91bf8872f 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -753,7 +753,7 @@ sub istranslation ($) { $translations{$masterpage}{$lang}=$page unless exists $translations{$masterpage}{$lang}; return (maybe_add_leading_slash($masterpage, $hasleadingslash), $lang); } - return; + return ""; } sub masterpage ($) {