summaryrefslogtreecommitdiff
path: root/cli/graph_util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/graph_util.rs')
-rw-r--r--cli/graph_util.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/cli/graph_util.rs b/cli/graph_util.rs
index cfd79d491..b919d5042 100644
--- a/cli/graph_util.rs
+++ b/cli/graph_util.rs
@@ -80,9 +80,7 @@ impl GraphData {
let mut has_npm_specifier_in_graph = false;
for (specifier, result) in graph.specifiers() {
- if specifier.scheme() == "npm"
- && NpmPackageReference::from_specifier(&specifier).is_ok()
- {
+ if NpmPackageReference::from_specifier(&specifier).is_ok() {
has_npm_specifier_in_graph = true;
continue;
}
@@ -230,9 +228,7 @@ impl GraphData {
for (dep_specifier, dep) in dependencies.iter().rev() {
// todo(dsherret): ideally there would be a way to skip external dependencies
// in the graph here rather than specifically npm package references
- if dep_specifier.starts_with("npm:")
- && NpmPackageReference::from_str(dep_specifier).is_ok()
- {
+ if NpmPackageReference::from_str(dep_specifier).is_ok() {
continue;
}