mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: cleanup - extract method
This commit is contained in:
+4
@@ -100,6 +100,10 @@ class RemoveChangeListAction : AnAction(), DumbAware {
|
||||
return confirmActiveChangeListRemoval(project, lists)
|
||||
}
|
||||
|
||||
return confirmChangeListRemoval(project, lists)
|
||||
}
|
||||
|
||||
private fun confirmChangeListRemoval(project: Project, lists: List<LocalChangeList>): Boolean {
|
||||
val haveNoChanges = lists.all { it.changes.isEmpty() }
|
||||
if (haveNoChanges) return true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user