combine fileLoader.New and NewLoader into one function: NewLoader

This commit is contained in:
Jingfang Liu
2018-08-15 11:01:48 -07:00
parent f018370628
commit 72b1a4bc5c
6 changed files with 27 additions and 24 deletions

View File

@@ -31,7 +31,6 @@ import (
type githubLoader struct {
repo string
checkoutDir string
fSys fs.FileSystem
loader *fileLoader
}
@@ -70,7 +69,6 @@ func newGithubLoader(repoUrl string, fs fs.FileSystem) (*githubLoader, error) {
return &githubLoader{
repo: repoUrl,
checkoutDir: target,
fSys: fs,
loader: l,
}, nil
}