File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ func TestObjectParse(t *testing.T) {
28
28
return nil
29
29
}
30
30
31
- parts := strings .Split (path , "/" )
31
+ parts := strings .Split (path , string (filepath .Separator ))
32
+
32
33
dir := parts [len (parts )- 2 ]
33
34
if dir == "info" || dir == "pack" {
34
35
return nil
@@ -360,7 +361,7 @@ func BenchmarkRawData(b *testing.B) {
360
361
return nil
361
362
}
362
363
363
- parts := strings .Split (path , "/" )
364
+ parts := strings .Split (path , string ( filepath . Separator ) )
364
365
if dir := parts [len (parts )- 2 ]; dir == "info" || dir == "pack" {
365
366
return nil
366
367
}
@@ -393,7 +394,7 @@ func BenchmarkCid(b *testing.B) {
393
394
return nil
394
395
}
395
396
396
- parts := strings .Split (path , "/" )
397
+ parts := strings .Split (path , string ( filepath . Separator ) )
397
398
if dir := parts [len (parts )- 2 ]; dir == "info" || dir == "pack" {
398
399
return nil
399
400
}
You can’t perform that action at this time.
0 commit comments