Skip to content

Commit bb6baf8

Browse files
authored
chore(server): Remove unnecessary else branch on ArtifactRoutes (#1829)
The when expression is now exhaustive and the compiler can imply that the else branch is never reached. This commit removed the useless else branch without changing any functionality.
1 parent 0ceb663 commit bb6baf8

File tree

1 file changed

+0
-1
lines changed
  • jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver

1 file changed

+0
-1
lines changed

jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver/ArtifactRoutes.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ private fun Route.getArtifact(
8484
when (artifact) {
8585
is TextArtifact -> call.respondText(artifact.data())
8686
is JarArtifact -> call.respondBytes(artifact.data(), ContentType.parse("application/java-archive"))
87-
else -> call.respondNotFound()
8887
}
8988
}
9089
}

0 commit comments

Comments
 (0)