Skip to content

Commit 7e54794

Browse files
committed
Only check for non empty header fore each error.
1 parent 7307772 commit 7e54794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Symfony/src/Codebender/CompilerBundle/Handler/CompilerHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ private function cleanUpClangOutput ($clang_output, $compiler_config, $option) {
11841184
$body = "";
11851185
}
11861186

1187-
if ($header != "" && $body != "") {
1187+
if ($header != "") {
11881188
if (strpos($header, "</font></b>") == 0)
11891189
$header = substr_replace($header, '', 0, 11);
11901190
if (array_key_exists($key + 1, $content_line_array)
@@ -1211,7 +1211,7 @@ private function cleanUpClangOutput ($clang_output, $compiler_config, $option) {
12111211
|| ($option == "asm"
12121212
&& strpos($header, "in asm") === false
12131213
&& strpos($body, "in asm") === false)) {
1214-
if ($header != "" && $body != "") {
1214+
if ($header != "") {
12151215
if (strpos($header, "</font></b>") == 0)
12161216
$header = substr_replace($header, '', 0, 11);
12171217
$final .= $header ."\n";

0 commit comments

Comments
 (0)