ListCommand: Remove unnecessary method parameter
'detail' is a class member; it doesn't need to be passed in
as a parameter.
Change-Id: I8a8ab8a9f9290c81510d23b2b0e6230267c4fc20
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 7cf81b6..030e5ec 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/replication/ListCommand.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ListCommand.java
@@ -47,7 +47,7 @@
protected void run() {
for (Destination d : config.getDestinations(FilterType.ALL)) {
if (matches(d.getRemoteConfig().getName())) {
- printRemote(d, detail);
+ printRemote(d);
}
}
}
@@ -68,7 +68,7 @@
}
}
- private void printRemote(Destination d, boolean detail) {
+ private void printRemote(Destination d) {
if (json) {
JsonObject obj = new JsonObject();
obj.addProperty("Remote", d.getRemoteConfig().getName());