mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Don't check for disposed project: makes no sense w/o read action
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user