client/js: format code to ESLint

This commit is contained in:
Shyam Sunder
2020-06-04 14:09:35 -04:00
parent 48c9001194
commit 4329b1620f
67 changed files with 1150 additions and 533 deletions

View File

@ -377,8 +377,9 @@ class Api extends events.EventTarget {
try {
if (this.userName && this.token) {
req.auth = null;
req.set('Authorization', 'Token '
+ new Buffer(this.userName + ":" + this.token).toString('base64'))
// eslint-disable-next-line no-undef
req.set('Authorization', 'Token ' + new Buffer(
this.userName + ":" + this.token).toString('base64'))
} else if (this.userName && this.userPassword) {
req.auth(
this.userName,