We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d98b386 commit ec63836Copy full SHA for ec63836
1 file changed
src/main/java/com/amihaiemil/docker/ListedVolumes.java
@@ -80,13 +80,12 @@ public Iterator<Volume> iterator() {
80
);
81
final HttpGet get = new HttpGet(uri.build());
82
try {
83
- final JsonObject obj = super.client().execute(
+ return super.client().execute(
84
get,
85
new ReadJsonObject(
86
new MatchStatus(get.getURI(), HttpStatus.SC_OK)
87
)
88
- );
89
- return obj.getJsonArray("Volumes").stream()
+ ).getJsonArray("Volumes").stream()
90
.map(json -> (JsonObject) json)
91
.map(
92
volume -> (Volume) new RtVolume(
0 commit comments