Skip to content

Commit

Permalink
indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
amihaiemil authored Dec 4, 2018
1 parent 1a9e17f commit 394c97d
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/main/java/com/amihaiemil/docker/RtDockerSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,30 @@ public final class RtDockerSystem implements DockerSystem {
* @param baseUri Base URI, ending with /system.
* @param dkr The Docker engine.
*/
RtDockerSystem(final HttpClient client, final URI baseUri,
final Docker dkr) {
RtDockerSystem(
final HttpClient client, final URI baseUri, final Docker dkr
) {
this.client = client;
this.baseUri = baseUri;
this.docker = dkr;
}

@Override
public DiskSpaceInfo diskUsage() throws IOException,
UnexpectedResponseException {
public DiskSpaceInfo diskUsage()
throws IOException, UnexpectedResponseException {
final HttpGet init = new HttpGet(this.baseUri.toString() + "/df");
try {
return new SystemDiskSpaceInfo(this.client.execute(
return new SystemDiskSpaceInfo(
this.client.execute(
init,
new ReadJsonObject(
new MatchStatus(
init.getURI(),
HttpStatus.SC_OK
)
new MatchStatus(
init.getURI(),
HttpStatus.SC_OK
)
)
));
)
);
} finally {
init.releaseConnection();
}
Expand Down

0 comments on commit 394c97d

Please sign in to comment.