Skip to content

Commit

Permalink
fix(postman): address complexity issue
Browse files Browse the repository at this point in the history
fixes #250
  • Loading branch information
ostridm committed Aug 22, 2024
1 parent bec2312 commit df6de7d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/postman/src/converter/DefaultConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ export class DefaultConverter implements Converter {
const params: Postman.Variable[] | Record<string, string> | undefined =
auth[auth.type];

return !params
? params
: Array.isArray(params)
return Array.isArray(params)
? Object.fromEntries(
params.map((val: Postman.Variable) =>
[val.key, val.value].map(String)
Expand Down

0 comments on commit df6de7d

Please sign in to comment.