src/linked_list.c

changeset 528
4fbfac557df8
parent 524
e98b09018d32
child 552
4373c2a90066
--- a/src/linked_list.c	Mon Apr 18 16:56:29 2022 +0200
+++ b/src/linked_list.c	Mon Apr 18 17:26:21 2022 +0200
@@ -779,8 +779,7 @@
         size_t item_size
 ) {
     cx_linked_list *list = cxCalloc(allocator, 1, sizeof(cx_linked_list));
-    if (list == NULL)
-        return NULL;
+    if (list == NULL) return NULL;
 
     list->base.cl = &cx_linked_list_class;
     list->base.allocator = allocator;
@@ -796,8 +795,7 @@
         CxListComparator comparator
 ) {
     cx_linked_list *list = cxCalloc(allocator, 1, sizeof(cx_linked_list));
-    if (list == NULL)
-        return NULL;
+    if (list == NULL) return NULL;
 
     list->base.cl = &cx_pointer_linked_list_class;
     list->base.allocator = allocator;

mercurial