about summary refs log tree commit diff
path: root/tvix/eval/src
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src')
-rw-r--r--tvix/eval/src/vm.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/tvix/eval/src/vm.rs b/tvix/eval/src/vm.rs
index 107aadb6e068..3dece0641281 100644
--- a/tvix/eval/src/vm.rs
+++ b/tvix/eval/src/vm.rs
@@ -1003,14 +1003,9 @@ impl<'o> VM<'o> {
             }
 
             OpCode::OpForce => {
-                let value = self.pop();
-
-                if let Value::Thunk(thunk) = value {
-                    self.push(Value::Thunk(thunk));
+                if let Some(Value::Thunk(_)) = self.stack.last() {
                     let trampoline = fallible!(self, Thunk::force_trampoline(self));
                     return Ok(trampoline);
-                } else {
-                    self.push(value);
                 }
             }