summaryrefslogtreecommitdiffstats
path: root/tpl/collections
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-08-02 15:28:43 +0000
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-10 20:11:51 +0200
commitc577a9ed2347559783c44232e1f08414008c5203 (patch)
tree04cb53ae9303a2b8058f4663220fd8aa842f3f87 /tpl/collections
parenta93cbb0d6cc6e3a78ba34aa372abc5b41ca24b2c (diff)
Fixed ineffectual assignments
Dropped/fixed ineffectual assignments after static code analysis.
Diffstat (limited to 'tpl/collections')
-rw-r--r--tpl/collections/collections.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tpl/collections/collections.go b/tpl/collections/collections.go
index 3839ad472..195199876 100644
--- a/tpl/collections/collections.go
+++ b/tpl/collections/collections.go
@@ -98,8 +98,9 @@ func (ns *Namespace) Delimit(seq, delimiter interface{}, last ...interface{}) (t
dStr, err := cast.ToStringE(l)
if err != nil {
dLast = nil
+ } else {
+ dLast = &dStr
}
- dLast = &dStr
}
seqv := reflect.ValueOf(seq)