We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2277c commit 747d3f3Copy full SHA for 747d3f3
server/src/main/kotlin/org/javacs/kt/URIContentProvider.kt
@@ -14,10 +14,8 @@ class URIContentProvider(
14
) {
15
fun contentOf(uri: URI): String = when (uri.scheme) {
16
"file" -> Paths.get(uri).toFile().readText()
17
- "kls" -> {
18
- uri.toKlsURI()?.let { classContentProvider.contentOf(it).second }
19
- ?: throw KotlinLSException("Could not find $uri")
20
- }
+ "kls" -> uri.toKlsURI()?.let { classContentProvider.contentOf(it).second }
+ ?: throw KotlinLSException("Could not find $uri")
21
else -> throw KotlinLSException("Unrecognized scheme ${uri.scheme}")
22
}
23
0 commit comments