Skip to content

Commit 9907207

Browse files
committed
removed unneeded null check
1 parent 5c3dd60 commit 9907207

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tinyexpr.c

-3
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,6 @@ te_expr *te_compile(const char *expression, const te_variable *variables, int va
692692

693693
double te_interp(const char *expression, int *error) {
694694
te_expr *n = te_compile(expression, 0, 0, error);
695-
if (n == NULL) {
696-
return NAN;
697-
}
698695

699696
double ret;
700697
if (n) {

0 commit comments

Comments
 (0)