Drop useless or duplicative code.

This commit is contained in:
Jeffrey Regan
2018-07-24 10:54:18 -07:00
parent 8d420ec3f7
commit a78aa22399
8 changed files with 50 additions and 90 deletions

View File

@@ -70,7 +70,7 @@ func (o *buildOptions) Validate(args []string) error {
// RunBuild runs build command.
func (o *buildOptions) RunBuild(out io.Writer, fSys fs.FileSystem) error {
l := loader.Init([]loader.SchemeLoader{loader.NewFileLoader(fSys)})
l := loader.NewLoader(loader.NewFileLoader(fSys))
absPath, err := filepath.Abs(o.kustomizationPath)
if err != nil {

View File

@@ -68,7 +68,7 @@ func (o *diffOptions) Validate(args []string) error {
// RunDiff gets the differences between Application.MakeCustomizedResMap() and Application.MakeUncustomizedResMap().
func (o *diffOptions) RunDiff(out, errOut io.Writer, fSys fs.FileSystem) error {
l := loader.Init([]loader.SchemeLoader{loader.NewFileLoader(fSys)})
l := loader.NewLoader(loader.NewFileLoader(fSys))
absPath, err := filepath.Abs(o.kustomizationPath)
if err != nil {