Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Dec 10, 2024
1 parent 5590d2b commit a9186e1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/fetch/src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export function processRequestPostLikeData(args: Args): RequestInit['body'] | nu
// throw new TypeError('NodeFormData from pkg "form-data" not supported, use FormData from "undici" instead')
// }
else if (typeof Blob !== 'undefined' && data instanceof Blob) {
// @ts-expect-error
// @ts-ignore
body = data
}
else if (typeof ArrayBuffer !== 'undefined' && data instanceof ArrayBuffer) {
Expand Down
2 changes: 0 additions & 2 deletions packages/midway-component-fetch/src/lib/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,6 @@ export function genAttrsWhileError(options: ProcessExCallbackOptions): Decorator
}
if (Array.isArray(captureResponseHeaders)) {
captureResponseHeaders.forEach((name) => {
// @ts-expect-error for undici types
const val = retrieveHeadersItem(opts.headers, name)
if (val) {
events[`http.${name}`] = val
Expand Down Expand Up @@ -194,7 +193,6 @@ export function genOutgoingRequestAttributes(options: ReqCallbackOptions): Attri

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

0 comments on commit a9186e1

Please sign in to comment.