Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
ihexxa committed Jun 7, 2024
1 parent 60f6772 commit b7fbeff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function getQueryParamsFromAuth(auth: RequestAuthentication | {}): RequestParame
}

const shouldAddAuthParamsToQuery = auth.type === 'apikey' && auth.addTo === 'queryParams';
return shouldAddAuthParamsToQuery && 'key' in auth && 'value' in auth ?
return shouldAddAuthParamsToQuery && auth.key && auth.value ?
[{ name: auth.key, value: auth.value }] :
[];
}
Expand Down

0 comments on commit b7fbeff

Please sign in to comment.