From 0b96cdc47939620021b5e78295659c51003c5e0f Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 21 Nov 2023 19:22:36 +0100 Subject: [PATCH] Update hub.go --- accounts/usbwallet/hub.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/accounts/usbwallet/hub.go b/accounts/usbwallet/hub.go index 0682310867..3f8c45cd03 100644 --- a/accounts/usbwallet/hub.go +++ b/accounts/usbwallet/hub.go @@ -188,9 +188,7 @@ func (hub *Hub) refreshWallets() { for _, info := range infos { for _, id := range hub.productIDs { // Windows and Macos use UsageID matching, Linux uses Interface matching - if info.ProductID == id && - info.Path != "" && - (slices.Contains(hub.usageIDs, info.UsagePage) || info.Interface == hub.endpointID) { + if info.ProductID == id && info.Path != "" && (slices.Contains(hub.usageIDs, info.UsagePage) || info.Interface == hub.endpointID) { devices = append(devices, info) break }