Adjusted indentations

This commit is contained in:
Kyler Olsen 2025-12-01 00:19:54 -07:00
parent 90492053f2
commit 7f46fd7f84
2 changed files with 8 additions and 10 deletions

View File

@ -43,11 +43,10 @@ Boolean exec_file(InterpreterState *interpreter_state, SlsStr filename) {
sls_str_free(&result.error.message); sls_str_free(&result.error.message);
clean_token_result(result.result); clean_token_result(result.result);
return FALSE; return FALSE;
} else } else if (!execute(interpreter_state, head)) {
if (!execute(interpreter_state, head)) { printf("A runtime error occurred!\n");
printf("A runtime error occurred!\n"); break;
break; }
}
head = head->next; head = head->next;
} }
clean_token_result(result.result); clean_token_result(result.result);

View File

@ -101,11 +101,10 @@ int repl() {
if (head->type == SLS_ERROR) { if (head->type == SLS_ERROR) {
printf("%s\n", head->error.message.str); printf("%s\n", head->error.message.str);
break; break;
} else } else if (!execute(interpreter_state, head)) {
if (!execute(interpreter_state, head)) { printf("A runtime error occurred!\n");
printf("A runtime error occurred!\n"); break;
break; }
}
head = head->next; head = head->next;
} }
clean_token_result(result.result); clean_token_result(result.result);