Code cleanups in filetype detection

This commit is contained in:
Ben S 2015-02-21 22:00:59 +00:00
parent 16346731ab
commit 363d52dbb0

View File

@ -132,14 +132,9 @@ impl<'a> HasType for File<'a> {
else if source_files.iter().any(|path| self.dir.map(|d| d.contains(path)).unwrap_or(false)) {
return Temp;
}
else {
if COMPILED_TYPES.iter().any(|&s| s == *ext) {
else if COMPILED_TYPES.iter().any(|&s| s == *ext) {
return Compiled;
}
else {
return Normal;
}
}
}
return Normal; // no filetype