mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[python] Cleanup in ImportToImportFromIntention: remove a meaningless loop
GitOrigin-RevId: e28fdc30bbf378784bb3f2753490e83125e624f4
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0a7cb22aa2
commit
79d991a338
+1
-6
@@ -158,12 +158,7 @@ public final class ImportToImportFromIntention extends PsiBasedModCommandAction<
|
||||
else {
|
||||
if (canRemoveImport) {
|
||||
// cut the module out of import, add a from-import.
|
||||
for (PyImportElement pie : importElements) {
|
||||
if (pie == myImportElement) {
|
||||
pie.delete();
|
||||
break;
|
||||
}
|
||||
}
|
||||
myImportElement.delete();
|
||||
}
|
||||
parent.addAfter(newImportStatement, importStatement);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user