Don't check for disposed project: makes no sense w/o read action

This commit is contained in:
Kirill Likhodedov
2017-04-07 16:19:02 +01:00
parent 7d957c7320
commit bc872fd41b
@@ -141,12 +141,7 @@ public class GitContentRevision implements ByteBackedContentRevision {
@Nullable VcsRevisionNumber revisionNumber,
Project project,
boolean isDeleted, final boolean canBeDeleted, boolean unescapePath) throws VcsException {
final FilePath file;
if (project.isDisposed()) {
file = VcsUtil.getFilePath(makeAbsolutePath(vcsRoot, path, unescapePath), false);
} else {
file = createPath(vcsRoot, path, isDeleted, canBeDeleted, unescapePath);
}
FilePath file = createPath(vcsRoot, path, isDeleted, canBeDeleted, unescapePath);
return createRevision(file, revisionNumber, project);
}