Skip to content

Commit 1320a47

Browse files
authored
Remove a call to UAST inline function (#4812)
1 parent df63cbb commit 1320a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lint/src/main/kotlin/ProviderAssignmentDetector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ProviderAssignmentDetector : Detector(), SourceCodeScanner {
4040
if (!isProviderGet(method)) {
4141
return
4242
}
43-
val binaryOperation = node.getParentOfType<UBinaryExpression>(true) ?: return
43+
val binaryOperation = node.getParentOfType(UBinaryExpression::class.java) ?: return
4444
if (binaryOperation.operatorIdentifier?.name != "=") return
4545

4646
val assignmentTarget = binaryOperation.leftOperand as? UReferenceExpression ?: return

0 commit comments

Comments
 (0)