summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki.pm5
1 files changed, 1 insertions, 4 deletions
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 ($) {