Merge pull request #147 from hashicorp/revert-121-filter-skip-nil-item

Revert "Skip a nil item during filtering"
This commit is contained in:
James Nugent 2016-09-02 11:48:36 -05:00 committed by GitHub
commit 7a6c44ace5

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
}