From: David Riebenbauer Date: Wed, 3 Feb 2010 01:35:19 +0000 (+0100) Subject: Revert "Make srcfile() return undef, if the file isn't there." X-Git-Tag: 3.20100427~62^2~28^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bd1e29b8c4d2c2e0329789d1baf0a879617aeee4;p=ikiwiki.git Revert "Make srcfile() return undef, if the file isn't there." This reverts commit 1bde208ec9b915db0187030c33450b5accb4892c. --- diff --git a/IkiWiki.pm b/IkiWiki.pm index 7d7f430b3..90e623330 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -744,10 +744,7 @@ sub srcfile_stat { } sub srcfile ($;$) { - if (my @stat=srcfile_stat(@_)) { - return $stat[0]; - } - return undef + return (srcfile_stat(@_))[0]; } sub add_underlay ($) {