Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/collections/complement.go')
-rw-r--r--tpl/collections/complement.go3
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)
}