Skip to content

Commit

Permalink
Add assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Ershov committed May 23, 2019
1 parent 94f4d63 commit 845ed5f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ private GetSnapshotsResponse(List<Response> responses) {
this.failedResponses = new HashMap<>();
for (Response response : responses) {
if (response.snapshots != null) {
assert response.error == null;
this.successfulResponses.put(response.repository, response.snapshots);
} else {
assert response.snapshots == null;
this.failedResponses.put(response.repository, response.error);
}
}
Expand Down

0 comments on commit 845ed5f

Please sign in to comment.