From eb1e1593c321456db309cef014d15310ad35ed8f Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Thu, 16 Feb 2023 14:18:40 +0800 Subject: [PATCH] Update return statements Use blank returns for subroutines. --- src/packages/game/data/IZ_list.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/packages/game/data/IZ_list.c b/src/packages/game/data/IZ_list.c index 8c74bac..122ebfc 100644 --- a/src/packages/game/data/IZ_list.c +++ b/src/packages/game/data/IZ_list.c @@ -93,7 +93,7 @@ void IZ_ListTeardown(IZ_List* list) { * @return Pointer to the newly created node. */ void IZ_ListAppendNode(IZ_List* list, void* node_value, IZ_ListNode** new_node) { - return IZ_ListDoAppendNode(list, node_value, new_node); + IZ_ListDoAppendNode(list, node_value, new_node); } /** @@ -173,7 +173,8 @@ void IZ_ListInsertNodeAtIndex(IZ_List* list, void* node_value, u64 dest_index, I } if (dest_index == list->length) { - return IZ_ListDoAppendNode(list, node_value, new_node_ref); + IZ_ListDoAppendNode(list, node_value, new_node_ref); + return; } IZ_ListNode* new_node = IZ_malloc(sizeof(IZ_ListNode));