mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-22 14:57:01 +00:00
combine fileLoader.New and NewLoader into one function: NewLoader
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user