Skip to content

Commit

Permalink
remove the workaround since Azure#311 is resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcturusZhang committed Nov 19, 2024
1 parent c93d60c commit d05e51f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/typespec-client-generator-core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1235,8 +1235,8 @@ function updateMultiPartInfo(
: undefined,
contentType: httpOperationPart.body.contentTypeProperty
? diagnostics.pipe(
getSdkModelPropertyType(context, httpOperationPart.body.contentTypeProperty, operation),
)
getSdkModelPropertyType(context, httpOperationPart.body.contentTypeProperty, operation),
)
: undefined,
defaultContentTypes: httpOperationPart.body.contentTypes,
};
Expand Down Expand Up @@ -1643,9 +1643,7 @@ function updateTypesFromOperation(
const access = getAccessOverride(context, operation) ?? "public";
diagnostics.pipe(updateUsageOrAccess(context, access, sdkType));

if (!context.arm) {
// TODO: currently skipping adding of envelopeResult due to arm error
// https://github.com/Azure/typespec-azure/issues/311
if (lroMetaData.envelopeResult !== undefined) {
const sdkType = diagnostics.pipe(
getClientTypeWithDiagnostics(context, lroMetaData.envelopeResult, operation),
);
Expand Down

0 comments on commit d05e51f

Please sign in to comment.