simplify default_var_exists

This commit is contained in:
Connor Skees 2020-08-17 04:01:25 -04:00
parent 9b9946c0ee
commit 4f56096571

View File

@ -90,11 +90,7 @@ impl Scope {
pub fn default_var_exists(&mut self, s: Identifier) -> bool {
if let Some(default_var) = self.get_var_no_err(s) {
if default_var.is_null() {
false
} else {
true
}
!default_var.is_null()
} else {
false
}