Fixed inverted logic in get_tags()

This commit is contained in:
Matthias Beyer 2015-11-10 17:26:51 +01:00
parent 006724a184
commit 0896f2093b

View file

@ -118,9 +118,9 @@ fn get_tags<'a>(rt: &Runtime, sub: &ArgMatches<'a, 'a>) -> Vec<String> {
.filter(|e| .filter(|e|
if e.contains(" ") { if e.contains(" ") {
warn!("Tag contains spaces: '{}'", e); warn!("Tag contains spaces: '{}'", e);
true
} else {
false false
} else {
true
}).collect() }).collect()
) )
).or(Some(vec![])).unwrap() ).or(Some(vec![])).unwrap()