Skip to content

Commit

Permalink
chore: eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr.Mao committed Aug 9, 2024
1 parent ec60663 commit 6909f59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions packages/@swag/fetch-js/src/parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ export function transformPaths(paths: Paths, { configRead, functions, interfaces
required: false,
})


if (config.method.toLowerCase() !== 'get') {
if (config.method.toLowerCase() !== 'get')
options.unshift(['method', `"${config.method}"`])
}

transformHeaderOptions('body', { options, parameters })

Expand Down
4 changes: 1 addition & 3 deletions packages/@swag/fetch-ts/src/parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,11 @@ export function transformPaths(paths: Paths, { configRead, functions, interfaces
required: false,
})

if (config.method.toLowerCase() !== 'get') {
if (config.method.toLowerCase() !== 'get')
options.unshift(['method', `"${config.method}"`])
}

transformHeaderOptions('body', { options, parameters })


options.push(['...', 'config'])

const { spaceResponseType } = transformParameters(parameters, {
Expand Down

0 comments on commit 6909f59

Please sign in to comment.