Skip to content

Commit ec63836

Browse files
committed
Removing obj variable - not needed
1 parent d98b386 commit ec63836

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/main/java/com/amihaiemil/docker/ListedVolumes.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,12 @@ public Iterator<Volume> iterator() {
8080
);
8181
final HttpGet get = new HttpGet(uri.build());
8282
try {
83-
final JsonObject obj = super.client().execute(
83+
return super.client().execute(
8484
get,
8585
new ReadJsonObject(
8686
new MatchStatus(get.getURI(), HttpStatus.SC_OK)
8787
)
88-
);
89-
return obj.getJsonArray("Volumes").stream()
88+
).getJsonArray("Volumes").stream()
9089
.map(json -> (JsonObject) json)
9190
.map(
9291
volume -> (Volume) new RtVolume(

0 commit comments

Comments
 (0)