From cb937ae67c9cb2f87206b24d11cf26677e697ff0 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Sun, 19 May 2024 15:16:01 +0000 Subject: [PATCH] fix: wrong is_empty condition --- --- a/crates/jrsonnet-evaluator/src/obj.rs +++ b/crates/jrsonnet-evaluator/src/obj.rs @@ -680,7 +680,7 @@ /// /// Note that object with hidden fields `{a:: 1}` will be reported as empty here. fn is_empty(&self) -> bool { - self.len() != 0 + self.len() == 0 } /// Run callback for every field found in object -- gitstuff