forked from p93542168/wheat-cache
fix(storage-listx): fix listx lpush
This commit is contained in:
parent
ead796d7c2
commit
8014cf7e1a
|
@ -162,7 +162,7 @@ func (l *Listx) LPush(valueStr ...string) structure.UpdateLength {
|
|||
|
||||
// 使用第一个元素尝试初始化列表
|
||||
updateLength := l.initByValue(valueStr[0])
|
||||
for i := 1; i < len(valueStr); i++ {
|
||||
for i := 0; i < len(valueStr); i++ {
|
||||
head := l.head
|
||||
val := structure.NewValue(valueStr[i])
|
||||
node := &ListxNode{val: val}
|
||||
|
|
Loading…
Reference in New Issue