From 32b90370680356a4bdbfb25768b09b6c1b8d2fdc Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Wed, 8 Sep 2021 18:43:06 +0000 Subject: [PATCH] clang-format and clang-tidy fixes for f7695035 --- data_structures/reverse_a_linked_list.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/data_structures/reverse_a_linked_list.cpp b/data_structures/reverse_a_linked_list.cpp index 7b983ebb6..18d1f3b25 100644 --- a/data_structures/reverse_a_linked_list.cpp +++ b/data_structures/reverse_a_linked_list.cpp @@ -121,10 +121,9 @@ int list::top() { if (!isEmpty()) { int n = head->val; return n; + } else { + return 0; } - else - return 0; - } /** * function to find the last element of the list @@ -138,9 +137,8 @@ int list::last() { t = t->next; } return t->val; - } - else return 0; - + } else + return 0; } /**