Fix list external links when required

This commit is contained in:
Mario Krehl 2017-01-24 11:15:35 +01:00 committed by Matthias Beyer
parent 69d5c69eea
commit ddd4a8b94a

View file

@ -98,11 +98,9 @@ fn handle_internal_linking(rt: &Runtime) {
Ok(Some(e)) => { Ok(Some(e)) => {
e.get_internal_links() e.get_internal_links()
.map(|iter| { .map(|iter| {
if cmd.is_present("list-externals-too") { iter.filter(move |id| {
iter.filter(|_| true) cmd.is_present("list-externals-too") || !is_external_link_storeid(&id)
} else { })
iter.filter(|id| !is_external_link_storeid(&id))
}
}) })
.map(|links| { .map(|links| {
let i = links let i = links