mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Kotlin: Remove some now-unnecessary casts
This commit is contained in:
@@ -851,12 +851,10 @@ class KotlinFileExtractor(val logger: FileLogger, val tw: FileTrapWriter, val fi
|
||||
id: Label<out DbBreakcontinuestmt>
|
||||
) {
|
||||
val locId = tw.getLocation(e)
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
tw.writeHasLocation(id as Label<out DbLocatable>, locId)
|
||||
tw.writeHasLocation(id, locId)
|
||||
val label = e.label
|
||||
if (label != null) {
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
tw.writeNamestrings(label, "", id as Label<out DbNamedexprorstmt>)
|
||||
tw.writeNamestrings(label, "", id)
|
||||
}
|
||||
|
||||
val loopId = loopIdMap[e.loop]
|
||||
|
||||
Reference in New Issue
Block a user