Skip to content

Commit

Permalink
Ooops
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkassimo committed Sep 29, 2018
1 parent ebd46d2 commit 28c792d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/deno_dir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ impl DenoDir {
if module_name.ends_with(".ts") || module_name.ends_with(".js") {
return try_extension("");
}
println!("Trying {}.ts...", module_name);
// println!("Trying {}.ts...", module_name);
if let Ok(v) = try_extension(".ts") {
return Ok(v);
}
println!("Trying {}.js...", module_name);
// println!("Trying {}.js...", module_name);
try_extension(".js")
}
}
Expand Down
5 changes: 0 additions & 5 deletions tests/015_import_no_ext.out
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/015_import_no_ext.ts...
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod3.ts...
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.ts...
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/mod4.js...
Trying http://localhost:4545/tests/subdir/mod2.ts...
Downloading http://localhost:4545/tests/subdir/mod2.ts
Trying /Users/kevinqian/Desktop/Programming/Deno/deno/tests/subdir/print_hello.ts...
Downloading http://localhost:4545/tests/subdir/print_hello.ts
true
[Function: printHello]
Expand Down

0 comments on commit 28c792d

Please sign in to comment.