Skip to content

Commit 747d3f3

Browse files
committed
Format
1 parent ff2277c commit 747d3f3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server/src/main/kotlin/org/javacs/kt/URIContentProvider.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ class URIContentProvider(
1414
) {
1515
fun contentOf(uri: URI): String = when (uri.scheme) {
1616
"file" -> Paths.get(uri).toFile().readText()
17-
"kls" -> {
18-
uri.toKlsURI()?.let { classContentProvider.contentOf(it).second }
19-
?: throw KotlinLSException("Could not find $uri")
20-
}
17+
"kls" -> uri.toKlsURI()?.let { classContentProvider.contentOf(it).second }
18+
?: throw KotlinLSException("Could not find $uri")
2119
else -> throw KotlinLSException("Unrecognized scheme ${uri.scheme}")
2220
}
2321
}

0 commit comments

Comments
 (0)