Skip to content

Commit a9186e1

Browse files
committed
chore: lint fix
1 parent 5590d2b commit a9186e1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/fetch/src/lib/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export function processRequestPostLikeData(args: Args): RequestInit['body'] | nu
313313
// throw new TypeError('NodeFormData from pkg "form-data" not supported, use FormData from "undici" instead')
314314
// }
315315
else if (typeof Blob !== 'undefined' && data instanceof Blob) {
316-
// @ts-expect-error
316+
// @ts-ignore
317317
body = data
318318
}
319319
else if (typeof ArrayBuffer !== 'undefined' && data instanceof ArrayBuffer) {

packages/midway-component-fetch/src/lib/helper.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ export function genAttrsWhileError(options: ProcessExCallbackOptions): Decorator
157157
}
158158
if (Array.isArray(captureResponseHeaders)) {
159159
captureResponseHeaders.forEach((name) => {
160-
// @ts-expect-error for undici types
161160
const val = retrieveHeadersItem(opts.headers, name)
162161
if (val) {
163162
events[`http.${name}`] = val
@@ -194,7 +193,6 @@ export function genOutgoingRequestAttributes(options: ReqCallbackOptions): Attri
194193

195194
if (Array.isArray(captureRequestHeaders)) {
196195
captureRequestHeaders.forEach((name) => {
197-
// @ts-expect-error for undici types
198196
const val = retrieveHeadersItem(opts.headers, name)
199197
if (val) {
200198
tags[`http.${name}`] = val

0 commit comments

Comments
 (0)