Delinting

This commit is contained in:
Ivan Bratović
2021-11-02 13:11:33 +01:00
parent 23736549f9
commit 0dcb7aed21
2 changed files with 4 additions and 5 deletions

View File

@@ -87,9 +87,9 @@ class Monitor extends BeanModel {
* for HTTP "basic" auth, as per RFC-7617
* @returns {string}
*/
encodeB64(user, pass) {
encodeB64(user, pass) {
return btoa(user + ":" + pass);
}
}
/**
* Parse to boolean
@@ -157,7 +157,7 @@ class Monitor extends BeanModel {
if (this.basicauth_user) {
basicauthHeader = {
"Authorization": "Basic " + this.encodeB64(this.basicauth_user, this.basicauth_pass)
}
};
}
const options = {