Skip to content

Commit 83ce2b3

Browse files
committed
Remove unnecessary platform specific workaround in iso9660util
Signed-off-by: Arthur Sengileyev <[email protected]>
1 parent ccd3c0c commit 83ce2b3

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/filesystem"
119
"github.com/diskfs/go-diskfs/filesystem/iso9660"
@@ -33,10 +31,6 @@ func Write(isoPath, label string, layout []Entry) error {
3331
if err != nil {
3432
return err
3533
}
36-
if runtime.GOOS == "windows" {
37-
// go-embed unfortunately needs unix path
38-
workdir = filepath.ToSlash(workdir)
39-
}
4034
logrus.Debugf("Creating iso file %s", isoFile.Name())
4135
logrus.Debugf("Using %s as workspace", workdir)
4236
fs, err := iso9660.Create(isoFile, 0, 0, 0, workdir)

0 commit comments

Comments
 (0)