Merge pull request #380 from tariq1890/cpick-exists-fallback

[R550 driver support] add fallback logic to device.Exists(name)
This commit is contained in:
Christopher Desiniotis 2024-02-27 12:41:04 -08:00 committed by GitHub
commit 5605d19133
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,7 @@ func (d devices) Count() int {
// Exists checks if a Device with a given name exists or not // Exists checks if a Device with a given name exists or not
func (d devices) Exists(name Name) bool { func (d devices) Exists(name Name) bool {
_, exists := d[name] _, exists := d.Get(name)
return exists return exists
} }