diff options
author | Christian Muehlhaeuser <muesli@gmail.com> | 2019-08-02 15:28:43 +0000 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-10 20:11:51 +0200 |
commit | c577a9ed2347559783c44232e1f08414008c5203 (patch) | |
tree | 04cb53ae9303a2b8058f4663220fd8aa842f3f87 /tpl | |
parent | a93cbb0d6cc6e3a78ba34aa372abc5b41ca24b2c (diff) |
Fixed ineffectual assignments
Dropped/fixed ineffectual assignments after static code analysis.
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/collections/collections.go | 3 |
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) |