Revert "Make srcfile() return undef, if the file isn't there."
authorDavid Riebenbauer <davrieb@liegesta.at>
Wed, 3 Feb 2010 01:35:19 +0000 (02:35 +0100)
committerDavid Riebenbauer <davrieb@liegesta.at>
Wed, 3 Feb 2010 06:34:04 +0000 (07:34 +0100)
This reverts commit 1bde208ec9b915db0187030c33450b5accb4892c.

IkiWiki.pm

index 7d7f430b3e3335d825eeb0c00b7b80b988c0f0d9..90e623330af4d760a9f941f14d04cf61b415b4c8 100644 (file)
@@ -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 ($) {