git » unicorn-sparkle-basic.git » commit 9d4eac1

clang-format

author Alan Dipert
2024-01-09 20:33:35 UTC
committer Alan Dipert
2024-01-09 20:33:35 UTC
parent 1ae8b346dde693fd105546905df5cfa7e5a8edf0

clang-format

parse.c +4 -2

diff --git a/parse.c b/parse.c
index 762df91..4ceb2bf 100644
--- a/parse.c
+++ b/parse.c
@@ -64,9 +64,11 @@ struct node_tag *read_line_stdin(char *prompt) {
   char *line = NULL;
   struct node_tag *read_node;
   line = readline(prompt);
-  if (strlen(line) == 0) return NULL;
+  if (strlen(line) == 0)
+    return NULL;
   read_node = read_line(line);
-  if (read_node != NULL) add_history(line);
+  if (read_node != NULL)
+    add_history(line);
   free(line);
   return read_node;
 }