aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/darcs.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-12-04 13:13:41 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-12-04 13:13:41 -0500
commitb8ed5e72286ab0c592ea62a24a0ac160647d612d (patch)
treec73f7157d7ce52dd216bdcb01c061500f764b713 /IkiWiki/Plugin/darcs.pm
parentaf3cc556bab1e2b840f8521b4da09bcf05f04fd9 (diff)
downloadikiwiki-b8ed5e72286ab0c592ea62a24a0ac160647d612d.tar
ikiwiki-b8ed5e72286ab0c592ea62a24a0ac160647d612d.tar.gz
more idomatic perl
Diffstat (limited to 'IkiWiki/Plugin/darcs.pm')
-rw-r--r--IkiWiki/Plugin/darcs.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/darcs.pm b/IkiWiki/Plugin/darcs.pm
index 2448673ac..0d68f27e5 100644
--- a/IkiWiki/Plugin/darcs.pm
+++ b/IkiWiki/Plugin/darcs.pm
@@ -73,7 +73,7 @@ sub darcs_rev($) {
my $file = shift; # Relative to the repodir.
my $repodir = $config{srcdir};
- return "" if (! file_in_vc($repodir, $file));
+ return "" unless file_in_vc($repodir, $file);
my $hash = darcs_info('hash', $repodir, $file);
return defined $hash ? $hash : "";
}