summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 62b54373b..ed74ff85e 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -293,9 +293,7 @@ sub writefile ($$$;$$) { #{{{
$writer->(\*OUT, $cleanup);
}
else {
- if (length $content) {
- print OUT $content || error("failed writing to $newfile: $!", $cleanup);
- }
+ print OUT $content or error("failed writing to $newfile: $!", $cleanup);
}
close OUT || error("failed saving $newfile: $!", $cleanup);
rename($newfile, "$destdir/$file") ||