Code cleanup: removed redundant semicolons
This commit is contained in:
+1
-1
@@ -50,7 +50,7 @@ class KDocMissingDocumentationInspection(): AbstractKotlinInspection() {
|
||||
|
||||
if (element is KtNamedDeclaration) {
|
||||
val nameIdentifier = element.nameIdentifier
|
||||
val descriptor = element.resolveToDescriptor() as? MemberDescriptor;
|
||||
val descriptor = element.resolveToDescriptor() as? MemberDescriptor
|
||||
if (nameIdentifier != null && descriptor?.visibility == Visibilities.PUBLIC) {
|
||||
val hasDocumentation = element.docComment != null ||
|
||||
(descriptor as? CallableMemberDescriptor)?.overriddenDescriptors
|
||||
|
||||
+1
-1
@@ -100,7 +100,7 @@ class KtSimpleNameReference(expression: KtSimpleNameExpression) : KtSimpleRefere
|
||||
|
||||
override fun handleElementRename(newElementName: String?): PsiElement {
|
||||
if (!canRename()) throw IncorrectOperationException()
|
||||
if (newElementName == null) return expression;
|
||||
if (newElementName == null) return expression
|
||||
|
||||
// Do not rename if the reference corresponds to synthesized component function
|
||||
val expressionText = expression.text
|
||||
|
||||
Reference in New Issue
Block a user