Skip to content

Commit 4bb0447

Browse files
committed
use strings split instead of filepath split list
1 parent 89b2f20 commit 4bb0447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

options.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package storage
22

33
import (
44
"errors"
5-
"path/filepath"
5+
"strings"
66

77
"go.opentelemetry.io/otel/trace"
88
)
@@ -32,7 +32,7 @@ func (o *Options) validateAndFix() error {
3232
}
3333
case LocalBackends:
3434
// to prevent uncontrolled file writes on local machines
35-
if len(filepath.SplitList(o.pathPrefix)) < 2 {
35+
if len(strings.Split(o.pathPrefix, "/")) < 2 {
3636
return ErrLocalStorageUnsafePrefix
3737
}
3838
default:

0 commit comments

Comments
 (0)