mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: cleanup - rename variable
This commit is contained in:
+4
-4
@@ -64,11 +64,11 @@ abstract class ChangeListRemoveConfirmation() {
|
||||
}
|
||||
|
||||
val toRemoveLists = toRemove.mapNotNull { manager.getChangeList(it) }
|
||||
val active = toRemoveLists.find { it.isDefault }
|
||||
toRemoveLists.forEach { if (it != active) manager.removeChangeList(it.name) }
|
||||
val defaultList = toRemoveLists.find { it.isDefault }
|
||||
toRemoveLists.forEach { if (it != defaultList) manager.removeChangeList(it.name) }
|
||||
|
||||
if (active != null && RemoveChangeListAction.confirmActiveChangeListRemoval(project, listOf(active), active.getChanges().isEmpty())) {
|
||||
manager.removeChangeList(active.name)
|
||||
if (defaultList != null && RemoveChangeListAction.confirmActiveChangeListRemoval(project, listOf(defaultList), defaultList.getChanges().isEmpty())) {
|
||||
manager.removeChangeList(defaultList.name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user