mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
Kotlin: Fix bazel format and address copilot review comments
This commit is contained in:
@@ -124,8 +124,6 @@ kt_javac_options(
|
||||
javac_opts = ":javac-options",
|
||||
kotlinc_opts = ":kotlinc-options-%s" % v,
|
||||
module_name = "codeql-kotlin-extractor",
|
||||
# resource_strip_prefix is very nit-picky: the following makes it work from
|
||||
# `codeql`, `@codeql_kotlin_embeddable` and `semmle-code`
|
||||
resources = [
|
||||
":resources-%s" % v,
|
||||
],
|
||||
|
||||
@@ -2975,7 +2975,7 @@ open class KotlinFileExtractor(
|
||||
val locId = tw.getLocation(s)
|
||||
tw.writeStmts_block(blockId, parent, idx, callable)
|
||||
tw.writeHasLocation(blockId, locId)
|
||||
// For Kotlin < 2.3, s.deligate is not-nullable. Cast to a be nullable,
|
||||
// For Kotlin < 2.3, s.delegate is not-nullable. Cast to a be nullable,
|
||||
// as a workaround to silence warnings for kotlin < 2.3 about the elvis
|
||||
// operator being redundant.
|
||||
// For Kotlin >= 2.3, the cast is redundant, so we need to silence that warning
|
||||
|
||||
Reference in New Issue
Block a user