SubmitRuleEvaluator: Remove unused variable
Change-Id: Iedbb7810389f8f50ad8584033113fae3ef731cc9
This commit is contained in:
@@ -150,9 +150,8 @@ public class SubmitRuleEvaluator {
|
|||||||
*/
|
*/
|
||||||
public SubmitTypeRecord getSubmitType(ChangeData cd) {
|
public SubmitTypeRecord getSubmitType(ChangeData cd) {
|
||||||
try (Timer0.Context ignored = submitTypeEvaluationLatency.start()) {
|
try (Timer0.Context ignored = submitTypeEvaluationLatency.start()) {
|
||||||
ProjectState projectState;
|
|
||||||
try {
|
try {
|
||||||
projectState = projectCache.get(cd.project()).orElseThrow(noSuchProject(cd.project()));
|
projectCache.get(cd.project()).orElseThrow(noSuchProject(cd.project()));
|
||||||
} catch (NoSuchProjectException e) {
|
} catch (NoSuchProjectException e) {
|
||||||
return typeError("Error looking up change " + cd.getId(), e);
|
return typeError("Error looking up change " + cd.getId(), e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user