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 fs = require('fs-extra');
const path = require('path'); const path = require('path');
const { execSync } = require('child_process'); const { execSync } = require('child_process');

View File

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

View File

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