]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/darcs.pm
more idomatic perl
[git.ikiwiki.info.git] / IkiWiki / Plugin / darcs.pm
index 2448673ac49169024aea08b0e8305d8a8622d414..0d68f27e5874b3331cbab851b1dafdfa06d21673 100644 (file)
@@ -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 : "";
 }