From: Joey Hess Date: Mon, 26 Jan 2009 18:10:37 +0000 (-0500) Subject: avoid standalone -e or foo syntax X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/8e738066bc1434f65d2e955e5c080c806a0ec797?hp=66bc27b485e6dd167d0394db18a078d5b7977ae3 avoid standalone -e or foo syntax I prefer to use either of the other two syntaxes perl offers, and not this one. --- 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));