commit e8ec157c1dbc3d4c45e1b6c551e8e2df69465aeb Author: Matthias Sohn Date: Sun Oct 11 21:12:14 2020 +0200 PatchScriptFactory: remove unused local variable changeEdit Change-Id: I809810c6d738531386e598b71f0d3025c1d95ed9 diff --git a/java/com/google/gerrit/server/patch/PatchScriptFactory.java b/java/com/google/gerrit/server/patch/PatchScriptFactory.java index 60a0688..02f46df 100644 --- a/java/com/google/gerrit/server/patch/PatchScriptFactory.java +++ b/java/com/google/gerrit/server/patch/PatchScriptFactory.java @@ -182,7 +182,6 @@ public class PatchScriptFactory implements Callable { ObjectId aId = getAId().orElse(null); ObjectId bId = getBId().orElse(null); - boolean changeEdit = false; if (bId == null) { // Change edit: create synthetic PatchSet corresponding to the edit. Optional edit = editReader.byChange(notes); @@ -190,7 +189,6 @@ public class PatchScriptFactory implements Callable { throw new NoSuchChangeException(notes.getChangeId()); } bId = edit.get().getEditCommit(); - changeEdit = true; } final PatchList list = listFor(keyFor(aId, bId, diffPrefs.ignoreWhitespace));