]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/no_trailing_whitespace.c
ccanlint: print coverage amount when -vv
[ccan] / tools / ccanlint / tests / no_trailing_whitespace.c
index a66fd74c3c57a8fdd7f42f352975bbe681366665..1018be3cd64938788a47019f71b11c832755fa8b 100644 (file)
@@ -35,11 +35,8 @@ static void check_trailing_whitespace(struct manifest *m,
                        char **lines = get_ccan_file_lines(f);
                        for (i = 0; i < f->num_lines; i++) {
                                char *err = get_trailing_whitespace(lines[i]);
-                               if (err) {
-                                       score->error = "Trailing whitespace"
-                                               " found";
+                               if (err)
                                        score_file_error(score, f, i+1, err);
-                               }
                        }
                }
        }