Fix list external links when required
This commit is contained in:
parent
69d5c69eea
commit
ddd4a8b94a
1 changed files with 3 additions and 5 deletions
|
@ -98,11 +98,9 @@ fn handle_internal_linking(rt: &Runtime) {
|
|||
Ok(Some(e)) => {
|
||||
e.get_internal_links()
|
||||
.map(|iter| {
|
||||
if cmd.is_present("list-externals-too") {
|
||||
iter.filter(|_| true)
|
||||
} else {
|
||||
iter.filter(|id| !is_external_link_storeid(&id))
|
||||
}
|
||||
iter.filter(move |id| {
|
||||
cmd.is_present("list-externals-too") || !is_external_link_storeid(&id)
|
||||
})
|
||||
})
|
||||
.map(|links| {
|
||||
let i = links
|
||||
|
|
Loading…
Reference in a new issue