diff --git a/src/scope.rs b/src/scope.rs index f252941..a70f843 100644 --- a/src/scope.rs +++ b/src/scope.rs @@ -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 }