mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
[vcs-log] remove redundant VcsLogCommitSelection#cachedMetadata usages
GitOrigin-RevId: 7800e54baebbe71f503d54e3399779ced15ecc12
This commit is contained in:
committed by
intellij-monorepo-bot
parent
28ed39ca3e
commit
004e2e15fc
@@ -278,7 +278,7 @@ abstract class GitCommitEditingActionBase<T : GitCommitEditingActionBase.Multipl
|
||||
return Prohibited()
|
||||
}
|
||||
|
||||
val commitList = selection.cachedMetadata.takeIf { it.isNotEmpty() } ?: return Prohibited()
|
||||
val commitList = selection.commits.takeIf { it.isNotEmpty() } ?: return Prohibited()
|
||||
val repositoryManager = GitUtil.getRepositoryManager(project)
|
||||
|
||||
val root = commitList.map { it.root }.distinct().singleOrNull() ?: return Prohibited(
|
||||
|
||||
Reference in New Issue
Block a user