privatize some methods

This commit is contained in:
Ryan Dahl 2018-05-19 05:56:02 -04:00
parent 258aa56532
commit ca8eb1d421
3 changed files with 6 additions and 6 deletions

View file

@ -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)