Skip to content

Commit

Permalink
Revert skipping statements for now
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsfrei authored and ArnoStiefvater committed May 7, 2024
1 parent b9d11e9 commit f69722f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rust/nasl-interpreter/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,13 @@ where
// to NONE.
if let Some((cp, rv)) = &self.skip_until_return {
tracing::trace!(position=?self.position, check_position=?cp, "verify position");
tracing::trace!(return=?rv, "skip execution");
self.position.down();
if cp == &self.position {
tracing::trace!(return=?rv, "skip execution");
tracing::trace!(return=?rv, "returning");
let rv = rv.clone();
self.skip_until_return = None;
self.position.down();
return Ok(rv);
} else {
return Ok(NaslValue::Null);
}
}

Expand Down

0 comments on commit f69722f

Please sign in to comment.