Skip to content

Commit

Permalink
nit 2
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkassimo committed Oct 2, 2018
1 parent eb95e04 commit e553617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/deno_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ impl DenoDir {
});
};
let default_attempt = use_extension("");
if let Ok(_) = default_attempt {
if default_attempt.is_some() {
return default_attempt;
}
debug!("Trying {}.ts...", module_name);
let ts_attempt = use_extension(".ts");
if let Ok(_) = ts_attempt {
if ts_attempt.is_some() {
return ts_attempt;
}
debug!("Trying {}.js...", module_name);
Expand Down

0 comments on commit e553617

Please sign in to comment.