Revert "Skip a nil item during filtering"

This commit is contained in:
James Nugent 2016-09-02 09:48:18 -07:00 committed by GitHub
parent ef28deed85
commit e3d360614a

View File

@ -56,7 +56,7 @@ func (o *ObjectList) Filter(keys ...string) *ObjectList {
var result ObjectList
for _, item := range o.Items {
// If there aren't enough keys, then ignore this
if item == nil || len(item.Keys) < len(keys) {
if len(item.Keys) < len(keys) {
continue
}