mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Kotlin: Remove a default argument
It was only defaulted in one case, and it's probably clearer to be explicit.
This commit is contained in:
@@ -89,7 +89,7 @@ open class KotlinFileExtractor(
|
||||
is IrFile -> return "@\"${element.path};sourcefile\"" // todo: remove copy-pasted code
|
||||
is IrClass -> return getClassLabel(element, listOf()).classLabel
|
||||
is IrTypeParameter -> return getTypeParameterLabel(element)
|
||||
is IrFunction -> return getFunctionLabel(element)
|
||||
is IrFunction -> return getFunctionLabel(element, null)
|
||||
is IrValueParameter -> return getValueParameterLabel(element, null)
|
||||
is IrProperty -> return getPropertyLabel(element)
|
||||
is IrField -> return getFieldLabel(element)
|
||||
|
||||
@@ -634,7 +634,7 @@ class X {
|
||||
else -> null
|
||||
}
|
||||
|
||||
fun getFunctionLabel(f: IrFunction, classTypeArgsIncludingOuterClasses: List<IrTypeArgument>? = null) : String {
|
||||
fun getFunctionLabel(f: IrFunction, classTypeArgsIncludingOuterClasses: List<IrTypeArgument>?) : String {
|
||||
return getFunctionLabel(f, null, classTypeArgsIncludingOuterClasses)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user