mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-02-02 18:48:24 +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)) {
|
else if source_files.iter().any(|path| self.dir.map(|d| d.contains(path)).unwrap_or(false)) {
|
||||||
return Temp;
|
return Temp;
|
||||||
}
|
}
|
||||||
else {
|
else if COMPILED_TYPES.iter().any(|&s| s == *ext) {
|
||||||
if COMPILED_TYPES.iter().any(|&s| s == *ext) {
|
|
||||||
return Compiled;
|
return Compiled;
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
return Normal;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return Normal; // no filetype
|
return Normal; // no filetype
|
||||||
|
Loading…
x
Reference in New Issue
Block a user