diff options
author | Aram Drevekenin <aram@poor.dev> | 2022-12-24 16:06:16 +0100 |
---|---|---|
committer | Aram Drevekenin <aram@poor.dev> | 2022-12-24 16:06:16 +0100 |
commit | a0b0f0e85207ca13b7ecdf16ed560e143a477853 (patch) | |
tree | a2e19687ae35e77c3dde8a27e6ee7324d5a456eb /zellij-utils/src | |
parent | 0ffda4e6f9c993fccb70b496efea3bc434a5115d (diff) |
style(clippy): fix clippy lint
Diffstat (limited to 'zellij-utils/src')
-rw-r--r-- | zellij-utils/src/kdl/kdl_layout_parser.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/zellij-utils/src/kdl/kdl_layout_parser.rs b/zellij-utils/src/kdl/kdl_layout_parser.rs index a24e6948d..67d79a7e9 100644 --- a/zellij-utils/src/kdl/kdl_layout_parser.rs +++ b/zellij-utils/src/kdl/kdl_layout_parser.rs @@ -983,9 +983,7 @@ impl<'a> KdlLayoutParser<'a> { fn has_child_nodes(&self, kdl_node: &KdlNode) -> bool { if let Some(children) = kdl_children_nodes!(kdl_node) { for child in children { - if kdl_name!(child) == "pane" || kdl_name!(child) == "children" { - return true; - } else if self.pane_templates.get(kdl_name!(child)).is_some() { + if kdl_name!(child) == "pane" || kdl_name!(child) == "children" || self.pane_templates.get(kdl_name!(child)).is_some() { return true; } } |