diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-10-07 22:43:44 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 22:43:44 +1100 |
commit | 99aa23b8ddd73ab6332430c2ba7c44792fad3886 (patch) | |
tree | 4f71b92a09e04602738165dbc941f1ef1c3d5b02 /cli/module_graph.rs | |
parent | cb3a3a1e951d0eef9e2d095f87eaaa2f5ea160ad (diff) |
refactor(cli): remove TextDocument (#7850)
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r-- | cli/module_graph.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs index e626dfb07..1c422b9b2 100644 --- a/cli/module_graph.rs +++ b/cli/module_graph.rs @@ -489,7 +489,7 @@ impl ModuleGraphLoader { &source_file.source_code.as_bytes(), version::DENO.as_bytes(), ]); - let source_code = source_file.source_code.to_string()?; + let source_code = source_file.source_code.clone(); if SUPPORTED_MEDIA_TYPES.contains(&source_file.media_type) { if let Some(types_specifier) = source_file.types_header { |