Minor cleanup

This commit is contained in:
Mikhail Glukhikh
2017-12-04 15:16:04 +03:00
parent 0eec3ef1f8
commit fb8dc7b590
@@ -48,7 +48,7 @@ class RedundantSemicolonInspection : AbstractKotlinInspection(), CleanupLocalIns
val isAtEndOfLine = nextLeaf == null || nextLeaf.isLineBreak() val isAtEndOfLine = nextLeaf == null || nextLeaf.isLineBreak()
if (!isAtEndOfLine) { if (!isAtEndOfLine) {
//when there is no imports parser generates empty import list with no spaces //when there is no imports parser generates empty import list with no spaces
if (semicolon.parent is KtPackageDirective && (nextLeaf as? KtImportList)?.imports?.isEmpty() ?: false) { if (semicolon.parent is KtPackageDirective && (nextLeaf as? KtImportList)?.imports?.isEmpty() == true) {
return true return true
} }
return false return false