mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-11 07:10:56 +00:00
Code cleanups in filetype detection
This commit is contained in:
parent
16346731ab
commit
363d52dbb0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user