Skip to content

Commit ea91764

Browse files
committed
fix assertion
1 parent cb8f02f commit ea91764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/repository-gcs/src/main/java/org/elasticsearch/repositories/gcs/GoogleCloudStorageClientsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ public void applyClusterState(ClusterChangedEvent event) {
117117
}
118118
// Removed projects
119119
for (var projectId : clientHolders.keySet()) {
120-
assert ProjectId.DEFAULT.equals(projectId) == false;
121120
if (currentProjects.containsKey(projectId) == false) {
121+
assert ProjectId.DEFAULT.equals(projectId) == false;
122122
clientHolders.remove(projectId);
123123
}
124124
}

0 commit comments

Comments
 (0)