From 738f7eb43cb61b1a32e84fd50d2a340a98d34150 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Sat, 31 Dec 2016 09:39:39 -0700 Subject: [PATCH] removed panic --- controller/collection/collection.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/collection/collection.go b/controller/collection/collection.go index dca07d9b..1dfc64ff 100644 --- a/controller/collection/collection.go +++ b/controller/collection/collection.go @@ -172,9 +172,9 @@ func (c *Collection) ReplaceOrInsert(id string, obj geojson.Object, fields []str c.weight += len(newFields) * 8 } } else { - if len(fields) == 0 { - panic("if fields is empty, make it nil") - } + //if len(fields) == 0 { + // panic("if fields is empty, make it nil") + //} // map field name to value for i, field := range fields { c.setField(newItem, field, values[i])