Skip to content

Commit 00409be

Browse files
committed
change runtime.GOOS to ios
1 parent 119dbf0 commit 00409be

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

common/platform/filesystem/file.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var NewFileReader FileReaderFunc = func(path string) (io.ReadCloser, error) {
1818
}
1919

2020
func ReadFile(path string) ([]byte, error) {
21-
if runtime.GOOS != "windows" && runtime.GOOS != "wasm" {
21+
if runtime.GOOS == "ios" {
2222
file, err := os.Open(path)
2323
if err != nil {
2424
return nil, err
@@ -41,6 +41,7 @@ func ReadFile(path string) ([]byte, error) {
4141
return bs, nil
4242
}
4343
}
44+
4445
// fallback
4546
reader, err := NewFileReader(path)
4647
if err != nil {

0 commit comments

Comments
 (0)