mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(lint): update deno_lint (#28271)
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
This commit is contained in:
parent
93a1bb738a
commit
6ac6e933dc
4 changed files with 28 additions and 16 deletions
|
@ -516,7 +516,9 @@ fn print_docs_to_stdout(
|
|||
doc_flags: DocFlags,
|
||||
mut doc_nodes: Vec<deno_doc::DocNode>,
|
||||
) -> Result<(), AnyError> {
|
||||
doc_nodes.retain(|doc_node| doc_node.kind() != doc::DocNodeKind::Import);
|
||||
doc_nodes.retain(|doc_node| {
|
||||
!matches!(doc_node.def, doc::node::DocNodeDef::Import { .. })
|
||||
});
|
||||
let details = if let Some(filter) = doc_flags.filter {
|
||||
let nodes = doc::find_nodes_by_name_recursively(doc_nodes, &filter);
|
||||
if nodes.is_empty() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue