summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-26 13:10:37 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-26 13:10:37 -0500
commit8e738066bc1434f65d2e955e5c080c806a0ec797 (patch)
tree12b8fb52e7ad085050d664aa1ce04b9629d71f05 /IkiWiki/Plugin
parent66bc27b485e6dd167d0394db18a078d5b7977ae3 (diff)
avoid standalone -e or foo syntax
I prefer to use either of the other two syntaxes perl offers, and not this one.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm6
1 files 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));