mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Update hub.go
This commit is contained in:
parent
a8a47001f3
commit
0b96cdc479
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue