ignoring errors during usb init

This commit is contained in:
antelle 2021-04-29 10:15:41 +02:00
parent c48153819f
commit a1d7a1fe48
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 2 additions and 2 deletions

View File

@ -175,8 +175,8 @@ function usbDeviceDetached(device) {
function fillAttachedYubiKeys() { function fillAttachedYubiKeys() {
const usbDetection = reqNative('usb-detection'); const usbDetection = reqNative('usb-detection');
usbDetection.find((err, devices) => { usbDetection.find((ignoredError, devices) => {
if (!err && devices) { if (devices) {
attachedYubiKeys.push(...devices.filter(isYubiKey)); attachedYubiKeys.push(...devices.filter(isYubiKey));
reportYubiKeys(); reportYubiKeys();
} }