From c577a9ed2347559783c44232e1f08414008c5203 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 2 Aug 2019 15:28:43 +0000 Subject: Fixed ineffectual assignments Dropped/fixed ineffectual assignments after static code analysis. --- tpl/collections/collections.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tpl/collections') 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) -- cgit v1.2.3