Adjusted indentations
This commit is contained in:
parent
90492053f2
commit
7f46fd7f84
|
|
@ -43,11 +43,10 @@ Boolean exec_file(InterpreterState *interpreter_state, SlsStr filename) {
|
|||
sls_str_free(&result.error.message);
|
||||
clean_token_result(result.result);
|
||||
return FALSE;
|
||||
} else
|
||||
if (!execute(interpreter_state, head)) {
|
||||
printf("A runtime error occurred!\n");
|
||||
break;
|
||||
}
|
||||
} else if (!execute(interpreter_state, head)) {
|
||||
printf("A runtime error occurred!\n");
|
||||
break;
|
||||
}
|
||||
head = head->next;
|
||||
}
|
||||
clean_token_result(result.result);
|
||||
|
|
|
|||
|
|
@ -101,11 +101,10 @@ int repl() {
|
|||
if (head->type == SLS_ERROR) {
|
||||
printf("%s\n", head->error.message.str);
|
||||
break;
|
||||
} else
|
||||
if (!execute(interpreter_state, head)) {
|
||||
printf("A runtime error occurred!\n");
|
||||
break;
|
||||
}
|
||||
} else if (!execute(interpreter_state, head)) {
|
||||
printf("A runtime error occurred!\n");
|
||||
break;
|
||||
}
|
||||
head = head->next;
|
||||
}
|
||||
clean_token_result(result.result);
|
||||
|
|
|
|||
Loading…
Reference in New Issue