Skip to content

Commit f95997c

Browse files
authored
Merge pull request #3149 from arixmkii/fix-iso9660util
Remove unnecessary platform specific workaround in iso9660util
2 parents ad9904b + 83ce2b3 commit f95997c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/iso9660util/iso9660util.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"io"
55
"os"
66
"path"
7-
"path/filepath"
8-
"runtime"
97

108
"github.com/diskfs/go-diskfs/backend/file"
119
"github.com/diskfs/go-diskfs/filesystem"
@@ -35,10 +33,6 @@ func Write(isoPath, label string, layout []Entry) error {
3533
if err != nil {
3634
return err
3735
}
38-
if runtime.GOOS == "windows" {
39-
// go-embed unfortunately needs unix path
40-
workdir = filepath.ToSlash(workdir)
41-
}
4236
logrus.Debugf("Creating iso file %s", isoFile.Name())
4337
logrus.Debugf("Using %s as workspace", workdir)
4438
fs, err := iso9660.Create(backendFile, 0, 0, 0, workdir)

0 commit comments

Comments
 (0)