Skip to content

Commit c644563

Browse files
committed
Merge pull request #154 from sparkprime/remove_unnecessary_check
Remove unnecessary check
2 parents 4fbc23c + bca6dce commit c644563

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/vm.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -718,9 +718,7 @@ class Interpreter {
718718
BindingFrame env;
719719
for (auto fv : free_vars) {
720720
auto *th = stack.lookUpVar(fv);
721-
if (th != nullptr) {
722-
env[fv] = th;
723-
}
721+
env[fv] = th;
724722
}
725723
return env;
726724
}

0 commit comments

Comments
 (0)