tools: actually add non-source files to other_files in manifest
[ccan] / tools / ccanlint / file_analysis.c
index e8c8ebc6dbb057f24849a6edd541c5c6cfda028d..92c23798292c9844058374f22115b324345ae720 100644 (file)
@@ -135,10 +135,7 @@ static void add_files(struct manifest *m, const char *dir)
                is_c_src = strends(f->name, ".c");
                if (!is_c_src && !strends(f->name, ".h")) {
                        dest = &m->other_files;
-                       continue;
-               }
-
-               if (!strchr(f->name, '/')) {
+               } else if (!strchr(f->name, '/')) {
                        if (is_c_src)
                                dest = &m->c_files;
                        else