summaryrefslogtreecommitdiff
path: root/cli/tsc/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc/mod.rs')
-rw-r--r--cli/tsc/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tsc/mod.rs b/cli/tsc/mod.rs
index e0ea22cd9..bdd11fd52 100644
--- a/cli/tsc/mod.rs
+++ b/cli/tsc/mod.rs
@@ -800,9 +800,9 @@ pub fn resolve_npm_package_reference_types(
}
#[op]
-fn op_is_node_file(state: &mut OpState, path: String) -> bool {
+fn op_is_node_file(state: &mut OpState, path: &str) -> bool {
let state = state.borrow::<State>();
- match ModuleSpecifier::parse(&path) {
+ match ModuleSpecifier::parse(path) {
Ok(specifier) => state
.maybe_npm_resolver
.as_ref()