aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-03 00:46:21 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-03-03 00:46:21 +0000
commit7562417578960895d63709bc584a10bdd4345138 (patch)
tree729540220e175043cb4dbc33cd1be0be6af1e04b
parentbd7c6d62fc7907e98214952437f18f3e42a99a6b (diff)
downloadikiwiki-7562417578960895d63709bc584a10bdd4345138.tar
ikiwiki-7562417578960895d63709bc584a10bdd4345138.tar.gz
fix precidence problem, thanks bod
-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") ||