mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
Remove unnecessary unchecked cast
This commit is contained in:
@@ -4564,8 +4564,7 @@ open class KotlinFileExtractor(
|
||||
extractExpressionExpr(loop.condition, callable, id, 0, id)
|
||||
}
|
||||
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
private fun <T : DbExpr> exprIdOrFresh(id: Label<out DbExpr>?) = id as? Label<T> ?: tw.getFreshIdLabel()
|
||||
private fun <T : DbExpr> exprIdOrFresh(id: Label<out DbExpr>?) = id?.cast<T>() ?: tw.getFreshIdLabel()
|
||||
|
||||
private fun toUnbound(t: IrType) =
|
||||
when(t) {
|
||||
|
||||
Reference in New Issue
Block a user