mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
privatize some methods
This commit is contained in:
parent
258aa56532
commit
ca8eb1d421
3 changed files with 6 additions and 6 deletions
|
@ -28,7 +28,7 @@ func CacheFileName(filename string, sourceCodeBuf []byte) string {
|
|||
// Fetches a remoteUrl but also caches it to the localFilename.
|
||||
func FetchRemoteSource(remoteUrl string, localFilename string) ([]byte, error) {
|
||||
//println("FetchRemoteSource", remoteUrl)
|
||||
Assert(strings.HasPrefix(localFilename, SrcDir), localFilename)
|
||||
assert(strings.HasPrefix(localFilename, SrcDir), localFilename)
|
||||
var sourceReader io.Reader
|
||||
|
||||
file, err := os.Open(localFilename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue