fix precidence problem, thanks bod
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 3 Mar 2007 00:46:21 +0000 (00:46 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 3 Mar 2007 00:46:21 +0000 (00:46 +0000)
IkiWiki.pm

index 62b54373bfb6195e64717bd9d613d184621fbbab..ed74ff85e65daff5e8c6c76be5b02ef3c0f4733e 100644 (file)
@@ -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") ||