Adapt to enabling CheckReturnValue in gerrit core

Bug: Google b/312699566
Change-Id: Iab06e526f7617cd95d59622ad41f2b38cd366686
Signed-off-by: Edwin Kempin <ekempin@google.com>
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java b/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java
index bdd9d6c..4414cec 100644
--- a/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java
+++ b/src/test/java/com/googlesource/gerrit/plugins/replication/ReplicationIT.java
@@ -371,7 +371,6 @@
     Result pushResult = createChange();
     shutdownDestinations();
 
-    pushResult.getCommit();
     String sourceRef = pushResult.getPatchSet().refName();
 
     assertThrows(