remove unused arguments
This commit is contained in:
parent
34b372292b
commit
cf08f5a9cd
8 changed files with 11 additions and 30 deletions
5
lib/api-client.js
generated
5
lib/api-client.js
generated
|
|
@ -32,11 +32,6 @@ function parseAuth(auth) {
|
|||
const c = auth.indexOf(':');
|
||||
if (c !== -1) {
|
||||
return 'basic ' + Buffer.from(auth).toString('base64');
|
||||
// return {
|
||||
// username: auth.substring(0, c),
|
||||
// password: auth.substring(c + 1),
|
||||
// on2fa: async () => { throw new Error(''); }
|
||||
// };
|
||||
}
|
||||
// Otherwise use the token as it is
|
||||
return auth;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue