mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 03:42:21 +08:00
Replace strings.Join(elms, "/") with path.Join(elms)
License: MIT Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
@ -102,3 +102,7 @@ func (p *Path) IsValid() error {
|
||||
_, err := ParsePath(p.String())
|
||||
return err
|
||||
}
|
||||
|
||||
func Join(pths []string) string {
|
||||
return strings.Join(pths, "/")
|
||||
}
|
||||
|
Reference in New Issue
Block a user