The longer and more readable version is:
```ruby
items.map { |item| GetDeviceName(item) }.reject {|item| item.empty? }
```