Skip to content

Commit b524bea

Browse files
committed
refactor: use suitable stdlib method
1 parent cefe9bc commit b524bea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

testaddon/testaddon.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66
"os"
77
"path/filepath"
8-
"strings"
98

109
"github.com/bitrise-io/go-utils/command"
1110
)
@@ -39,7 +38,7 @@ func generateTestInfoFile(dir string, data []byte) error {
3938
// ExportArtifact exports artifact found at path in directory uniqueDir,
4039
// rooted at baseDir.
4140
func ExportArtifact(path, baseDir, uniqueDir string) error {
42-
exportDir := strings.Join([]string{baseDir, uniqueDir}, "/")
41+
exportDir := filepath.Join(baseDir, uniqueDir)
4342

4443
if err := os.MkdirAll(exportDir, os.ModePerm); err != nil {
4544
return fmt.Errorf("skipping artifact (%s): could not ensure unique export dir (%s): %s", path, exportDir, err)

0 commit comments

Comments
 (0)