mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-14 22:04:59 +00:00
Update cache.rs
This commit is contained in:
parent
923f8fbbaf
commit
a7cdc7bc7c
1 changed files with 3 additions and 1 deletions
|
@ -218,7 +218,9 @@ impl SharedModuleCache {
|
||||||
|
|
||||||
pub fn initialize(&self) {
|
pub fn initialize(&self) {
|
||||||
let builtin_path = PathBuf::from("<builtins>");
|
let builtin_path = PathBuf::from("<builtins>");
|
||||||
let builtin = self.remove(&builtin_path).unwrap();
|
let Some(builtin) = self.remove(&builtin_path) else {
|
||||||
|
return;
|
||||||
|
};
|
||||||
for path in self.keys() {
|
for path in self.keys() {
|
||||||
self.remove(&path);
|
self.remove(&path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue