Skip to content

Commit 9cacceb

Browse files
authored
Rename parameter name in pollingHelper to fix lint error (#2582)
* rename parameter name in pollingHelper to fix lint error * update * update
1 parent b334660 commit 9cacceb

21 files changed

Lines changed: 42 additions & 42 deletions

File tree

packages/autorest.typescript/test/rlcIntegration/generated/dpgCustomization/src/pollingHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
105105
},
106106
sendPollRequest: async (
107107
path: string,
108-
options?: { abortSignal?: AbortSignalLike },
108+
pollOptions?: { abortSignal?: AbortSignalLike },
109109
) => {
110110
// This is the callback that is going to be called to poll the service
111111
// to get the latest status. We use the client provided and the polling path
@@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
114114
function abortListener(): void {
115115
abortController.abort();
116116
}
117-
const inputAbortSignal = options?.abortSignal;
117+
const inputAbortSignal = pollOptions?.abortSignal;
118118
const abortSignal = abortController.signal;
119119
if (inputAbortSignal?.aborted) {
120120
abortController.abort();

packages/autorest.typescript/test/rlcIntegration/generated/lroRest/src/pollingHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
105105
},
106106
sendPollRequest: async (
107107
path: string,
108-
options?: { abortSignal?: AbortSignalLike },
108+
pollOptions?: { abortSignal?: AbortSignalLike },
109109
) => {
110110
// This is the callback that is going to be called to poll the service
111111
// to get the latest status. We use the client provided and the polling path
@@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
114114
function abortListener(): void {
115115
abortController.abort();
116116
}
117-
const inputAbortSignal = options?.abortSignal;
117+
const inputAbortSignal = pollOptions?.abortSignal;
118118
const abortSignal = abortController.signal;
119119
if (inputAbortSignal?.aborted) {
120120
abortController.abort();

packages/autorest.typescript/test/rlcIntegration/generated/pagingRest/src/pollingHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
105105
},
106106
sendPollRequest: async (
107107
path: string,
108-
options?: { abortSignal?: AbortSignalLike },
108+
pollOptions?: { abortSignal?: AbortSignalLike },
109109
) => {
110110
// This is the callback that is going to be called to poll the service
111111
// to get the latest status. We use the client provided and the polling path
@@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
114114
function abortListener(): void {
115115
abortController.abort();
116116
}
117-
const inputAbortSignal = options?.abortSignal;
117+
const inputAbortSignal = pollOptions?.abortSignal;
118118
const abortSignal = abortController.signal;
119119
if (inputAbortSignal?.aborted) {
120120
abortController.abort();

packages/autorest.typescript/test/smoke/generated/agrifood-data-plane/src/pollingHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
105105
},
106106
sendPollRequest: async (
107107
path: string,
108-
options?: { abortSignal?: AbortSignalLike },
108+
pollOptions?: { abortSignal?: AbortSignalLike },
109109
) => {
110110
// This is the callback that is going to be called to poll the service
111111
// to get the latest status. We use the client provided and the polling path
@@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
114114
function abortListener(): void {
115115
abortController.abort();
116116
}
117-
const inputAbortSignal = options?.abortSignal;
117+
const inputAbortSignal = pollOptions?.abortSignal;
118118
const abortSignal = abortController.signal;
119119
if (inputAbortSignal?.aborted) {
120120
abortController.abort();

packages/autorest.typescript/test/smoke/generated/anomaly-detector-rest/src/pollingHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
105105
},
106106
sendPollRequest: async (
107107
path: string,
108-
options?: { abortSignal?: AbortSignalLike },
108+
pollOptions?: { abortSignal?: AbortSignalLike },
109109
) => {
110110
// This is the callback that is going to be called to poll the service
111111
// to get the latest status. We use the client provided and the polling path
@@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
114114
function abortListener(): void {
115115
abortController.abort();
116116
}
117-
const inputAbortSignal = options?.abortSignal;
117+
const inputAbortSignal = pollOptions?.abortSignal;
118118
const abortSignal = abortController.signal;
119119
if (inputAbortSignal?.aborted) {
120120
abortController.abort();

packages/autorest.typescript/test/smoke/generated/synapse-artifacts-rest/src/pollingHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
105105
},
106106
sendPollRequest: async (
107107
path: string,
108-
options?: { abortSignal?: AbortSignalLike },
108+
pollOptions?: { abortSignal?: AbortSignalLike },
109109
) => {
110110
// This is the callback that is going to be called to poll the service
111111
// to get the latest status. We use the client provided and the polling path
@@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
114114
function abortListener(): void {
115115
abortController.abort();
116116
}
117-
const inputAbortSignal = options?.abortSignal;
117+
const inputAbortSignal = pollOptions?.abortSignal;
118118
const abortSignal = abortController.signal;
119119
if (inputAbortSignal?.aborted) {
120120
abortController.abort();

packages/rlc-common/src/static/pollingContent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
124124
},
125125
sendPollRequest: async (
126126
path: string,
127-
options?: { abortSignal?: AbortSignalLike }
127+
pollOptions?: { abortSignal?: AbortSignalLike }
128128
) => {
129129
// This is the callback that is going to be called to poll the service
130130
// to get the latest status. We use the client provided and the polling path
@@ -133,7 +133,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
133133
function abortListener(): void {
134134
abortController.abort();
135135
}
136-
const inputAbortSignal = options?.abortSignal;
136+
const inputAbortSignal = pollOptions?.abortSignal;
137137
const abortSignal = abortController.signal;
138138
if (inputAbortSignal?.aborted) {
139139
abortController.abort();

packages/typespec-test/test/NetworkAnalytics.Management/generated/typespec-ts/src/rest/pollingHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
219219
},
220220
sendPollRequest: async (
221221
path: string,
222-
options?: { abortSignal?: AbortSignalLike },
222+
pollOptions?: { abortSignal?: AbortSignalLike },
223223
) => {
224224
// This is the callback that is going to be called to poll the service
225225
// to get the latest status. We use the client provided and the polling path
@@ -228,7 +228,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
228228
function abortListener(): void {
229229
abortController.abort();
230230
}
231-
const inputAbortSignal = options?.abortSignal;
231+
const inputAbortSignal = pollOptions?.abortSignal;
232232
const abortSignal = abortController.signal;
233233
if (inputAbortSignal?.aborted) {
234234
abortController.abort();

packages/typespec-test/test/authoring/generated/typespec-ts/src/pollingHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
201201
},
202202
sendPollRequest: async (
203203
path: string,
204-
options?: { abortSignal?: AbortSignalLike },
204+
pollOptions?: { abortSignal?: AbortSignalLike },
205205
) => {
206206
// This is the callback that is going to be called to poll the service
207207
// to get the latest status. We use the client provided and the polling path
@@ -210,7 +210,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
210210
function abortListener(): void {
211211
abortController.abort();
212212
}
213-
const inputAbortSignal = options?.abortSignal;
213+
const inputAbortSignal = pollOptions?.abortSignal;
214214
const abortSignal = abortController.signal;
215215
if (inputAbortSignal?.aborted) {
216216
abortController.abort();

packages/typespec-test/test/contoso/generated/typespec-ts/src/pollingHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
133133
},
134134
sendPollRequest: async (
135135
path: string,
136-
options?: { abortSignal?: AbortSignalLike },
136+
pollOptions?: { abortSignal?: AbortSignalLike },
137137
) => {
138138
// This is the callback that is going to be called to poll the service
139139
// to get the latest status. We use the client provided and the polling path
@@ -142,7 +142,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
142142
function abortListener(): void {
143143
abortController.abort();
144144
}
145-
const inputAbortSignal = options?.abortSignal;
145+
const inputAbortSignal = pollOptions?.abortSignal;
146146
const abortSignal = abortController.signal;
147147
if (inputAbortSignal?.aborted) {
148148
abortController.abort();

0 commit comments

Comments
 (0)