Minor: cleanup code in cli-js and js.sourcemap

This commit is contained in:
Nikolay Krasko
2022-09-29 11:04:51 +02:00
committed by Space Team
parent eb2326eabb
commit 20692c9837
4 changed files with 41 additions and 33 deletions
@@ -64,6 +64,7 @@ class SourceMapBuilderConsumer(
throw RuntimeException("IO error occurred generating source maps", e)
}
}
is JsLocationWithSource -> {
val contentSupplier = if (provideExternalModuleContent) sourceInfo.sourceProvider else {
{ null }
@@ -87,7 +88,11 @@ class SourceMapBuilderConsumer(
sourceInfo.startChar
)
}
is JsNode, is KtPureElement -> { /* Can occur on legacy BE */ }
is JsNode, is KtPureElement -> {
/* Can occur on legacy BE */
}
else -> {}
}
}