Fixed ineffectual assignments

Dropped/fixed ineffectual assignments after static code analysis.
This commit is contained in:
Christian Muehlhaeuser
2019-08-02 15:28:43 +00:00
committed by Bjørn Erik Pedersen
parent a93cbb0d6c
commit c577a9ed23
5 changed files with 14 additions and 12 deletions

View File

@@ -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)