-
Notifications
You must be signed in to change notification settings - Fork 401
Closed
Labels
Breaking Changegood first issueThis issue is a good place to started contributing to this repository.This issue is a good place to started contributing to this repository.next major: breaking changethis is a change that we should wait to bundle into the next major versionthis is a change that we should wait to bundle into the next major versionpriority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
It's pretty legacy at this point and we can clean up this unnecessary code.
google-auth-library-nodejs/src/options.ts
Lines 20 to 32 in 5f296c3
export function validate(options: any) { | |
const vpairs = [ | |
{invalid: 'uri', expected: 'url'}, | |
{invalid: 'json', expected: 'data'}, | |
{invalid: 'qs', expected: 'params'}, | |
]; | |
for (const pair of vpairs) { | |
if (options[pair.invalid]) { | |
const e = `'${pair.invalid}' is not a valid configuration option. Please use '${pair.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`; | |
throw new Error(e); | |
} | |
} | |
} |
Metadata
Metadata
Assignees
Labels
Breaking Changegood first issueThis issue is a good place to started contributing to this repository.This issue is a good place to started contributing to this repository.next major: breaking changethis is a change that we should wait to bundle into the next major versionthis is a change that we should wait to bundle into the next major versionpriority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.