name-rev: add support to exclude refs by pattern match
[gitweb.git] / builtin / fmt-merge-msg.c
index 4976967a96402e8fe9a09fb5ce2057a436153a5e..efab62fd85e314ccb6ec5becedead91823d03dde 100644 (file)
@@ -314,12 +314,10 @@ static void add_people_info(struct strbuf *out,
                            struct string_list *authors,
                            struct string_list *committers)
 {
-       if (authors->nr)
-               QSORT(authors->items, authors->nr,
-                     cmp_string_list_util_as_integral);
-       if (committers->nr)
-               QSORT(committers->items, committers->nr,
-                     cmp_string_list_util_as_integral);
+       QSORT(authors->items, authors->nr,
+             cmp_string_list_util_as_integral);
+       QSORT(committers->items, committers->nr,
+             cmp_string_list_util_as_integral);
 
        credit_people(out, authors, 'a');
        credit_people(out, committers, 'c');