mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: simplify - remove duplication
This commit is contained in:
@@ -56,16 +56,13 @@ public class PartialChangesUtil {
|
||||
if (change instanceof ChangeListChange) {
|
||||
ChangeListChange changelistChange = (ChangeListChange)change;
|
||||
|
||||
ContentRevision afterRevision = change.getAfterRevision();
|
||||
if (afterRevision instanceof CurrentContentRevision) {
|
||||
VirtualFile virtualFile = ((CurrentContentRevision)afterRevision).getVirtualFile();
|
||||
if (virtualFile != null) {
|
||||
partialChangesMap.putValue(virtualFile, changelistChange);
|
||||
continue;
|
||||
}
|
||||
VirtualFile virtualFile = getVirtualFile(change);
|
||||
if (virtualFile != null) {
|
||||
partialChangesMap.putValue(virtualFile, changelistChange);
|
||||
}
|
||||
else {
|
||||
otherChanges.add((changelistChange).getChange());
|
||||
}
|
||||
|
||||
otherChanges.add((changelistChange).getChange());
|
||||
}
|
||||
else {
|
||||
otherChanges.add(change);
|
||||
|
||||
Reference in New Issue
Block a user