Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Revert "Fix: change check function for waitProjectAsync"
Browse files Browse the repository at this point in the history
This reverts commit bb9d95e.
  • Loading branch information
gciavarrini authored and openshift-merge-robot committed May 9, 2023
1 parent d7bd49b commit 83cbb92
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,7 @@ private void signal() {
* @throws ApiException If the API method invocation fails
*/
public static void waitProjectStart(ProjectApi projectApi) throws InterruptedException, ApiException {
List<ProjectResponseDTO> projectResponseDTOS = waitAsyncResponse(new FuncExecutor<>() {
@Override
public boolean check(List<ProjectResponseDTO> result) {
return result == null;
}

@Override
public void execute(@NonNull ApiCallback<List<ProjectResponseDTO>> callback) throws ApiException {
projectApi.getProjectsAsync(callback);
}
});
waitAsyncResponse((FuncExecutor<List<ProjectResponseDTO>>) callback -> projectApi.getProjectsAsync(callback));
}

/**
Expand Down

0 comments on commit 83cbb92

Please sign in to comment.