Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
M4R7iNP committed Sep 22, 2023
1 parent f21ba08 commit eaae11a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,19 +852,15 @@ impl Document {
| "neg_expr"
)
}) {
if node_to_type(&node)
.or_else(|| {
let ident = get_node_text(&self.rope, &node);
let ident_parts = ident.split('.').collect::<Vec<_>>();
global_scope
.get_type_property_by_nested_idents(ident_parts.clone())
.cloned()
})
let ident = get_node_text(&self.rope, &node);
let ident_parts = ident.split('.').collect::<Vec<_>>();
if global_scope
.get_type_property_by_nested_idents(ident_parts.clone())
.is_none()
{
add_error!(node: node, "Not found");
continue;
};
}
}
}
}
Expand Down

0 comments on commit eaae11a

Please sign in to comment.