Minor refactor.

This commit is contained in:
Stephen Chung
2022-03-27 21:53:50 +08:00
parent 5caf20d26b
commit 6369fa5c65
5 changed files with 10 additions and 11 deletions

View File

@@ -178,7 +178,7 @@ impl Engine {
#[cfg(not(feature = "no_closure"))]
crate::func::call::ensure_no_data_race(name, &mut args, false)?;
let result = self.call_script_fn(
self.call_script_fn(
scope,
global,
state,
@@ -189,8 +189,6 @@ impl Engine {
rewind_scope,
Position::NONE,
0,
);
result
)
}
}