summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen S <ogham@bsago.me>2015-02-21 22:00:59 +0000
committerBen S <ogham@bsago.me>2015-02-21 22:00:59 +0000
commit363d52dbb0e05db30ee7c2c49417b2633df6c9ce (patch)
treea77929114436aba614718c64857494e5d297b21e
parent16346731ab730c49da51304a3066233ebd9fbf87 (diff)
Code cleanups in filetype detectionv0.1.0
-rw-r--r--src/filetype.rs9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/filetype.rs b/src/filetype.rs
index 1259337..b2a7be6 100644
--- a/src/filetype.rs
+++ b/src/filetype.rs
@@ -132,13 +132,8 @@ 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) {
- return Compiled;
- }
- else {
- return Normal;
- }
+ else if COMPILED_TYPES.iter().any(|&s| s == *ext) {
+ return Compiled;
}
}