From 8e738066bc1434f65d2e955e5c080c806a0ec797 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 26 Jan 2009 13:10:37 -0500 Subject: avoid standalone -e or foo syntax I prefer to use either of the other two syntaxes perl offers, and not this one. --- IkiWiki/Plugin/po.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index daac95eb1..be7a28722 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -851,9 +851,9 @@ sub refreshpofiles ($@) { my @pofiles=@_; my $potfile=potfile($masterfile); - (-e $potfile) - or error("po(refreshpofiles) ".sprintf(gettext("POT file (%s) does not exist"), - $potfile)); + if (! -e $potfile) { + error("po(refreshpofiles) ".sprintf(gettext("POT file (%s) does not exist"), $potfile)); + } foreach my $pofile (@pofiles) { IkiWiki::prep_writefile(basename($pofile),dirname($pofile)); -- cgit v1.2.3