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
path: root/tpl
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2019-08-02 18:28:43 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-08-10 21:11:51 +0300
commitc577a9ed2347559783c44232e1f08414008c5203 (patch)
tree04cb53ae9303a2b8058f4663220fd8aa842f3f87 /tpl
parenta93cbb0d6cc6e3a78ba34aa372abc5b41ca24b2c (diff)
Fixed ineffectual assignments
Dropped/fixed ineffectual assignments after static code analysis.
Diffstat (limited to 'tpl')
-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)