@@ -185,7 +185,7 @@ func searchKeys(data []byte, keys ...string) int {
185185 var valueOffset int
186186
187187 ArrayEach (data [i :], func (value []byte , dataType ValueType , offset int , err error ) {
188- if ( curIdx == aIdx ) {
188+ if curIdx == aIdx {
189189 valueFound = value
190190 valueOffset = offset
191191 }
@@ -344,7 +344,7 @@ func EachKey(data []byte, cb func(int, []byte, ValueType, error), paths ...[]str
344344 continue
345345 }
346346
347- aIdx , _ := strconv .Atoi (p [level ][1 : len (p [level ]) - 1 ])
347+ aIdx , _ := strconv .Atoi (p [level ][1 : len (p [level ])- 1 ])
348348 arrIdxFlags |= bitwiseFlags [aIdx + 1 ]
349349 pIdxFlags |= bitwiseFlags [pi + 1 ]
350350 }
@@ -354,10 +354,10 @@ func EachKey(data []byte, cb func(int, []byte, ValueType, error), paths ...[]str
354354
355355 var curIdx int
356356 arrOff , _ := ArrayEach (data [i :], func (value []byte , dataType ValueType , offset int , err error ) {
357- if ( arrIdxFlags & bitwiseFlags [curIdx + 1 ] != 0 ) {
357+ if arrIdxFlags & bitwiseFlags [curIdx + 1 ] != 0 {
358358 for pi , p := range paths {
359359 if pIdxFlags & bitwiseFlags [pi + 1 ] != 0 {
360- aIdx , _ := strconv .Atoi (p [level - 1 ][1 : len (p [level - 1 ]) - 1 ])
360+ aIdx , _ := strconv .Atoi (p [level - 1 ][1 : len (p [level - 1 ])- 1 ])
361361
362362 if curIdx == aIdx {
363363 of := searchKeys (value , p [level :]... )
@@ -594,7 +594,7 @@ func ArrayEach(data []byte, cb func(value []byte, dataType ValueType, offset int
594594 }
595595
596596 if t != NotExist {
597- cb (v , t , offset + o - len (v ), e )
597+ cb (v , t , offset + o - len (v ), e )
598598 }
599599
600600 if e != nil {
0 commit comments