Going with ruby functional style programming instead of java imperative style, I'd just

```ruby
return [buck.objects[key]]
```