Skip to content

Commit 845ed5f

Browse files
author
Andrey Ershov
committed
Add assertions
1 parent 94f4d63 commit 845ed5f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/get/GetSnapshotsResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ private GetSnapshotsResponse(List<Response> responses) {
9595
this.failedResponses = new HashMap<>();
9696
for (Response response : responses) {
9797
if (response.snapshots != null) {
98+
assert response.error == null;
9899
this.successfulResponses.put(response.repository, response.snapshots);
99100
} else {
101+
assert response.snapshots == null;
100102
this.failedResponses.put(response.repository, response.error);
101103
}
102104
}

0 commit comments

Comments
 (0)