Skip to content

Commit

Permalink
fix readfile function to use custom fs
Browse files Browse the repository at this point in the history
  • Loading branch information
Son Roy Almerol committed Oct 30, 2024
1 parent 461b9f9 commit d94e507
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js_compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"io/fs"
"log"
"os"
)

func compileCustomJS() []byte {
Expand All @@ -18,7 +17,7 @@ func compileCustomJS() []byte {
return nil
}

content, err := os.ReadFile(path)
content, err := customJsFS.ReadFile(path)
if err != nil {
return err
}
Expand Down

0 comments on commit d94e507

Please sign in to comment.