summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2016-03-15 13:50:00 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2016-03-15 13:52:18 +0900
commit9e7bfeccf1ef2079d23739eaf53f52168bdd85b1 (patch)
treeaf00575705c6fd6bb818f35a4ed70c61fc0d7dac
parent269e727201e80a20c4ba5effbaddf067ac59cdf9 (diff)
ListCommand: Remove unnecessary local variable
-rw-r--r--src/main/java/com/googlesource/gerrit/plugins/replication/ListCommand.java5
1 files changed, 1 insertions, 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<Destination> dest = config.getDestinations(FilterType.ALL);
- for (Destination d : dest) {
+ for (Destination d : config.getDestinations(FilterType.ALL)) {
if (matches(d.getRemoteConfig().getName())) {
printRemote(d, detail);
}