fix unecessary return
This commit is contained in:
committed by
Bennet Bleßmann
parent
ae3019d923
commit
495bcd73f2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user