From: joey Date: Sat, 3 Mar 2007 00:46:21 +0000 (+0000) Subject: fix precidence problem, thanks bod X-Git-Tag: 1.45~62 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/7562417578960895d63709bc584a10bdd4345138 fix precidence problem, thanks bod --- 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") ||