Remove error return from constructor.

This commit is contained in:
jregan
2019-11-02 14:26:20 -07:00
parent 690e01c2ba
commit 4c15c42447
12 changed files with 67 additions and 47 deletions

View File

@@ -28,11 +28,6 @@ type Kustomizer struct {
options *Options
}
// MakeDefaultKustomizer returns a Kustomizer with default configuration.
func MakeDefaultKustomizer() *Kustomizer {
return MakeKustomizer(filesys.MakeFsOnDisk(), MakeDefaultOptions())
}
// MakeKustomizer returns an instance of Kustomizer.
func MakeKustomizer(fSys filesys.FileSystem, o *Options) *Kustomizer {
return &Kustomizer{fSys: fSys, options: o}