Skip to content

Commit 5605d19

Browse files
authored
Merge pull request #380 from tariq1890/cpick-exists-fallback
[R550 driver support] add fallback logic to device.Exists(name)
2 parents 5d246ad + 3a0c989 commit 5605d19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/info/proc/devices/devices.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (d devices) Count() int {
6767

6868
// Exists checks if a Device with a given name exists or not
6969
func (d devices) Exists(name Name) bool {
70-
_, exists := d[name]
70+
_, exists := d.Get(name)
7171
return exists
7272
}
7373

0 commit comments

Comments
 (0)