fix unecessary return

This commit is contained in:
Bennet Bleßmann
2025-07-31 21:33:13 +02:00
committed by Bennet Bleßmann
parent ae3019d923
commit 495bcd73f2
3 changed files with 6 additions and 6 deletions

View File

@@ -688,12 +688,12 @@ impl<'a, LS: LoadState<'a>> Loader<'a, LS> {
let code_index_tbl = &mut LS::machine_st(&mut self.payload).arena.code_index_tbl;
if module_name == atom!("user") {
return *self
*self
.wam_prelude
.indices
.code_dir
.entry(key)
.or_insert_with(|| CodeIndex::new(IndexPtr::undefined(), code_index_tbl));
.or_insert_with(|| CodeIndex::new(IndexPtr::undefined(), code_index_tbl))
} else {
self.get_or_insert_local_code_index(module_name, key)
}