diff options
Diffstat (limited to 'cli/compilers/ts.rs')
-rw-r--r-- | cli/compilers/ts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/compilers/ts.rs b/cli/compilers/ts.rs index 3c36f14c4..854963eaa 100644 --- a/cli/compilers/ts.rs +++ b/cli/compilers/ts.rs @@ -580,7 +580,7 @@ impl SourceMapGetter for TsCompiler { fn get_source_map(&self, script_name: &str) -> Option<Vec<u8>> { self .try_to_resolve_and_get_source_map(script_name) - .and_then(|out| Some(out.source_code)) + .map(|out| out.source_code) } fn get_source_line(&self, script_name: &str, line: usize) -> Option<String> { |