Skip to content

Commit

Permalink
[TA] Remove partial succeeded status code (#30421)
Browse files Browse the repository at this point in the history
  • Loading branch information
mssfang authored Aug 12, 2022
1 parent b5e9390 commit 47e315b
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
import static com.azure.ai.textanalytics.implementation.Utility.toRecognizePiiEntitiesResultCollection;
import static com.azure.ai.textanalytics.implementation.models.State.CANCELLED;
import static com.azure.ai.textanalytics.implementation.models.State.NOT_STARTED;
import static com.azure.ai.textanalytics.implementation.models.State.PARTIALLY_COMPLETED;
import static com.azure.ai.textanalytics.implementation.models.State.RUNNING;
import static com.azure.ai.textanalytics.implementation.models.State.SUCCEEDED;
import static com.azure.core.util.FluxUtil.monoError;
Expand Down Expand Up @@ -1236,8 +1235,6 @@ private Mono<PollResponse<AnalyzeActionsOperationDetail>> processAnalyzedModelRe
status = LongRunningOperationStatus.SUCCESSFULLY_COMPLETED;
} else if (CANCELLED.equals(state)) {
status = LongRunningOperationStatus.USER_CANCELLED;
} else if (PARTIALLY_COMPLETED.equals(state)) {
status = LongRunningOperationStatus.fromString("partiallySucceeded", true);
} else {
status = LongRunningOperationStatus.fromString(
analyzeJobStateResponse.getValue().getStatus().toString(), true);
Expand Down

0 comments on commit 47e315b

Please sign in to comment.