diff options
Diffstat (limited to 'tpl/collections/complement.go')
-rw-r--r-- | tpl/collections/complement.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tpl/collections/complement.go b/tpl/collections/complement.go index a5633f8b4..4dc5e3bf2 100644 --- a/tpl/collections/complement.go +++ b/tpl/collections/complement.go @@ -44,9 +44,6 @@ func (ns *Namespace) Complement(seqs ...interface{}) (interface{}, error) { sl := reflect.MakeSlice(v.Type(), 0, 0) for i := 0; i < v.Len(); i++ { ev, _ := indirectInterface(v.Index(i)) - if !ev.Type().Comparable() { - return nil, errors.New("elements in complement must be comparable") - } if _, found := aset[normalize(ev)]; !found { sl = reflect.Append(sl, ev) } |