From aae5dfbe206d735207ed279b1bf2580c3f8ab306 Mon Sep 17 00:00:00 2001 From: Mark Cowlishaw Date: Fri, 6 Sep 2024 17:16:44 -0700 Subject: [PATCH] Prevent false positives in checking lro status --- packages/typespec-azure-core/src/lro-helpers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/typespec-azure-core/src/lro-helpers.ts b/packages/typespec-azure-core/src/lro-helpers.ts index 85c9f90660..7ab740cb11 100644 --- a/packages/typespec-azure-core/src/lro-helpers.ts +++ b/packages/typespec-azure-core/src/lro-helpers.ts @@ -821,6 +821,7 @@ function GetStatusMonitorInfoFromOperation( program: Program, operation: HttpOperation ): StatusMonitorInfo | undefined { + if (operation.verb === "get" || operation.verb === "head") return undefined; const models = filterResponseModels( operation, (model) =>