Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

format code #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/main/java/mousio/etcd4j/EtcdUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,16 @@ public String transform(String s) {
*/
private static void iterateOverNodes(ObjectNode json, EtcdNode node) {
if (node.isDir()) {
for(EtcdNode n: node.getNodes())
for(EtcdNode n: node.getNodes()) {
iterateOverNodes(json, n);
}
} else {
List<String> keyPath = new ArrayList<>();

for (String key: node.getKey().split("/")) {
if (!key.isEmpty())
if (!key.isEmpty()) {
keyPath.add(key);
}
}

ObjectNode jsonNodes = json;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/mousio/etcd4j/transport/EtcdNettyClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ protected Bootstrap getBootstrap() {
* @param etcdRequest Etcd Request to send
* @return Promise for the request.
*/
@Override
public <R> EtcdResponsePromise<R> send(final EtcdRequest<R> etcdRequest) throws IOException {
ConnectionState connectionState = new ConnectionState(uris, lastWorkingUriIndex);

Expand Down