From: Joey Hess Date: Fri, 4 Dec 2009 18:13:41 +0000 (-0500) Subject: more idomatic perl X-Git-Tag: 3.20091218~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b8ed5e72286ab0c592ea62a24a0ac160647d612d;p=ikiwiki.git more idomatic perl --- 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 : ""; }