Remove unnecessary variable

Change-Id: Ibfff1885e49ba3605885d4cf1f6531c9dd3f482a
This commit is contained in:
Saša Živkov
2016-03-11 17:09:47 +01:00
parent 7afc56818a
commit 9f940c3582

View File

@@ -97,14 +97,13 @@ public class PatchListCacheImpl implements PatchListCache {
public PatchList get(Change change, PatchSet patchSet)
throws PatchListNotAvailableException {
Project.NameKey project = change.getProject();
ObjectId a = null;
if (patchSet.getRevision() == null) {
throw new PatchListNotAvailableException(
"revision is null for " + patchSet.getId());
}
ObjectId b = ObjectId.fromString(patchSet.getRevision().get());
Whitespace ws = Whitespace.IGNORE_NONE;
return get(new PatchListKey(a, b, ws), project);
return get(new PatchListKey(null, b, ws), project);
}
@Override