File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1201,13 +1201,13 @@ func (path callPath) String() string {
1201
1201
}
1202
1202
case p .index :
1203
1203
if len (parts ) > 0 {
1204
- parts [last ] = parts [ last ] + "[i]"
1204
+ parts [last ] += "[i]"
1205
1205
} else {
1206
1206
parts = append (parts , "[i]" )
1207
1207
}
1208
1208
case p .key :
1209
1209
if len (parts ) > 0 {
1210
- parts [last ] = parts [ last ] + "[key]"
1210
+ parts [last ] += "[key]"
1211
1211
} else {
1212
1212
parts = append (parts , "[key]" )
1213
1213
}
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ func hasPathPrefix(path, prefix string) bool {
429
429
return true
430
430
}
431
431
if ! strings .HasSuffix (path , string (filepath .Separator )) {
432
- prefix = prefix + string (filepath .Separator )
432
+ prefix += string (filepath .Separator )
433
433
}
434
434
return strings .HasPrefix (path , prefix )
435
435
}
You can’t perform that action at this time.
0 commit comments