@@ -35,9 +35,9 @@ func (q *Path) Parse(req *retryablehttp.Request) (bool, error) {
3535 q .req = req
3636 q .value = NewValue ("" )
3737
38- splitted := strings .Split (req .Path , "/" )
38+ split := strings .Split (req .Path , "/" )
3939 values := make (map [string ]interface {})
40- for i , segment := range splitted {
40+ for i , segment := range split {
4141 if segment == "" && i == 0 {
4242 // Skip the first empty segment from leading "/"
4343 continue
@@ -88,20 +88,20 @@ func (q *Path) Delete(key string) error {
8888// component rebuilt
8989func (q * Path ) Rebuild () (* retryablehttp.Request , error ) {
9090 // Get the original path segments
91- originalSplitted := strings .Split (q .req .Path , "/" )
91+ originalSplit := strings .Split (q .req .Path , "/" )
9292
9393 // Create a new slice to hold the rebuilt segments
94- rebuiltSegments := make ([]string , 0 , len (originalSplitted ))
94+ rebuiltSegments := make ([]string , 0 , len (originalSplit ))
9595
9696 // Add the first empty segment (from leading "/")
97- if len (originalSplitted ) > 0 && originalSplitted [0 ] == "" {
97+ if len (originalSplit ) > 0 && originalSplit [0 ] == "" {
9898 rebuiltSegments = append (rebuiltSegments , "" )
9999 }
100100
101101 // Process each segment
102102 segmentIndex := 1 // 1-based indexing for our stored values
103- for i := 1 ; i < len (originalSplitted ); i ++ {
104- originalSegment := originalSplitted [i ]
103+ for i := 1 ; i < len (originalSplit ); i ++ {
104+ originalSegment := originalSplit [i ]
105105 if originalSegment == "" {
106106 // Skip empty segments
107107 continue
0 commit comments