Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch '__rultor'
  • Loading branch information
rultor committed Apr 2, 2018
2 parents 0b0f946 + 272cd12 commit 123a1a4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/main/java/com/jcabi/github/RtPull.java
Expand Up @@ -32,7 +32,6 @@
import com.jcabi.aspects.Immutable;
import com.jcabi.aspects.Loggable;
import com.jcabi.http.Request;
import com.jcabi.http.response.JsonResponse;
import com.jcabi.http.response.RestResponse;
import java.io.IOException;
import java.net.HttpURLConnection;
Expand Down Expand Up @@ -131,12 +130,10 @@ public Commit map(final JsonObject object) {

@Override
public Iterable<JsonObject> files() throws IOException {
return this.request
.uri().path("/files").back()
.fetch().as(RestResponse.class)
.assertStatus(HttpURLConnection.HTTP_OK)
.as(JsonResponse.class)
.json().readArray().getValuesAs(JsonObject.class);
return new RtPagination<JsonObject>(
this.request.uri().path("/files").back(),
RtPagination.COPYING
);
}

@Override
Expand Down

0 comments on commit 123a1a4

Please sign in to comment.