vcs: cleanup - use util method

This commit is contained in:
Aleksey Pivovarov
2018-10-11 14:55:50 +03:00
parent 97be9f3a89
commit 03d4b7df58
@@ -415,10 +415,8 @@ public class ChangeDiffRequestProducer implements DiffRequestProducer, ChangeDif
@NotNull
public static String getRequestTitle(@NotNull Change change) {
ContentRevision bRev = change.getBeforeRevision();
ContentRevision aRev = change.getAfterRevision();
FilePath bPath = bRev != null ? bRev.getFile() : null;
FilePath aPath = aRev != null ? aRev.getFile() : null;
FilePath bPath = ChangesUtil.getBeforePath(change);
FilePath aPath = ChangesUtil.getAfterPath(change);
return DiffRequestFactoryImpl.getTitle(bPath, aPath, DIFF_TITLE_RENAME_SEPARATOR);
}