Skip to content

Commit

Permalink
Code cleanups in filetype detection
Browse files Browse the repository at this point in the history
  • Loading branch information
ogham committed Feb 21, 2015
1 parent 1634673 commit 363d52d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/filetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 363d52d

Please sign in to comment.