Skip to content

Commit

Permalink
Removing obj variable - not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuzmic committed Jan 16, 2019
1 parent d98b386 commit ec63836
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/com/amihaiemil/docker/ListedVolumes.java
Expand Up @@ -80,13 +80,12 @@ public Iterator<Volume> iterator() {
);
final HttpGet get = new HttpGet(uri.build());
try {
final JsonObject obj = super.client().execute(
return super.client().execute(
get,
new ReadJsonObject(
new MatchStatus(get.getURI(), HttpStatus.SC_OK)
)
);
return obj.getJsonArray("Volumes").stream()
).getJsonArray("Volumes").stream()
.map(json -> (JsonObject) json)
.map(
volume -> (Volume) new RtVolume(
Expand Down

0 comments on commit ec63836

Please sign in to comment.