From 9e7bfeccf1ef2079d23739eaf53f52168bdd85b1 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Tue, 15 Mar 2016 13:50:00 +0900 Subject: ListCommand: Remove unnecessary local variable Change-Id: I744b488492f0177db315585d4575ec606d06e1bd --- .../com/googlesource/gerrit/plugins/replication/ListCommand.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ListCommand.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ListCommand.java index 91fa65a..3bb1e22 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/ListCommand.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ListCommand.java @@ -28,8 +28,6 @@ import com.googlesource.gerrit.plugins.replication.ReplicationConfig.FilterType; import org.kohsuke.args4j.Option; -import java.util.List; - @RequiresCapability(GlobalCapability.ADMINISTRATE_SERVER) @CommandMetaData(name = "list", description = "List specific remote destinations information") final class ListCommand extends SshCommand { @@ -47,8 +45,7 @@ final class ListCommand extends SshCommand { @Override protected void run() { - List dest = config.getDestinations(FilterType.ALL); - for (Destination d : dest) { + for (Destination d : config.getDestinations(FilterType.ALL)) { if (matches(d.getRemoteConfig().getName())) { printRemote(d, detail); } -- cgit v1.2.3