chore: clean up comments

This commit is contained in:
Aetherinox 2024-04-21 21:50:05 -07:00
parent 5fa2c75a6f
commit 8f6b7bae36
No known key found for this signature in database
GPG Key ID: CB5C4C30CD0D4028
3 changed files with 2 additions and 12 deletions

View File

@ -1,5 +1,3 @@
/* eslint-env node */
const fs = require('fs-extra');
const path = require('path');
const { execSync } = require('child_process');

View File

@ -144,15 +144,10 @@ class StorageBase {
}
_httpRequestLauncher(config, onLoad) {
console.log('-----------_httpRequestLauncher-----------');
console.log(config);
console.log(onLoad);
console.log('-----------===================-----------');
Launcher.remoteApp().httpRequestQuery(
config,
(level, ...args) => this.logger[level](...args),
({ status, response, headers }) => {
console.log('aaa');
response = Buffer.from(response, 'hex');
if (config.responseType === 'json') {
try {
@ -160,7 +155,6 @@ class StorageBase {
} catch (e) {
return config.error && config.error('json parse error');
}
console.log('bbb');
} else {
response = response.buffer.slice(
response.byteOffset,
@ -482,8 +476,8 @@ class StorageBase {
this.logger.error('Error exchanging refresh token, trying to authorize again');
this._oauthAuthorize(callback);
} else {
this.logger.error('Error exchanging refresh aaaaaaaaa', err);
callback?.('Error exchanging refresh aaaaaaaaaaa');
this.logger.error('Error exchanging refresh token', err);
callback?.('Error exchanging refresh token');
}
}
});

View File

@ -99,10 +99,8 @@ class GeneratorView extends View {
showPassword() {
if (this.hide && !this.model.copy) {
this.resultEl.text(PasswordPresenter.present(this.password.length));
// this.resultEl.prop('value', PasswordPresenter.present(this.password.length));
} else {
this.resultEl.text(this.password);
// this.resultEl.prop('value', this.password);
}
}