avoid hashing identifier for function when empty

This commit is contained in:
Connor Skees 2020-07-08 21:01:05 -04:00
parent 5b2cc1df77
commit 5551a8f8a8

View File

@ -66,6 +66,9 @@ impl Scope {
}
fn fn_exists(&self, name: &Identifier) -> bool {
if self.functions.is_empty() {
return false;
}
self.functions.contains_key(name)
}