Remove unnecessary if when compiling the glob set.
@@ -115,7 +115,6 @@ impl Config {
let mut glob_set_builder = GlobSetBuilder::new();
if let Some(ref v) = config.ignored_content {
- if v.len() > 0 {
for pat in v {
let glob = match Glob::new(pat) {
Ok(g) => g,
@@ -124,7 +123,6 @@ impl Config {
glob_set_builder.add(glob);
}
}
- }
config.ignored_content_globber = Some(glob_set_builder.build().expect("Bad ignored_content in config file."));
Ok(config)
