1
0
mirror of https://github.com/keeweb/keeweb.git synced 2024-06-20 06:56:40 +02:00

code cleanup

This commit is contained in:
antelle 2020-05-07 19:00:18 +02:00
parent ab3d4a056f
commit f34ebe2fd3
No known key found for this signature in database
GPG Key ID: 094A2F2D6136A4EE
2 changed files with 2 additions and 3 deletions

View File

@ -253,7 +253,7 @@ const Launcher = {
logger.info(msg + (stdout && !config.noStdOutLogging ? '\n' + stdout : ''));
}
if (complete) {
complete(code !== 0 ? 'Exit code ' + code : null, stdout, code, stderr);
complete(code !== 0 ? 'Exit code ' + code : null, stdout, code);
complete = null;
}
});

View File

@ -112,8 +112,7 @@ class YubiKeyOtpModel extends ExternalOtpDeviceModel {
args: ['-d', serial, 'oath', 'code'],
noStdOutLogging: true,
throwOnStdErr: true,
complete: (err, stdout, code, stderr) => {
logger.info('ykman complete with code', code);
complete: (err, stdout) => {
this.openProcess = null;
if (this.openAborted) {
return callback('Open aborted');