Merge pull request #314 from monopole/noCleanup

Remove unread variable.
This commit is contained in:
k8s-ci-robot
2018-08-31 18:29:25 -07:00
committed by GitHub

View File

@@ -22,9 +22,6 @@ import (
"github.com/kubernetes-sigs/kustomize/pkg/loader"
)
// CleanupCalled indicates if Cleanup is called.
var CleanupCalled = false
// FakeLoader encapsulates the delegate Loader and the fake file system.
type FakeLoader struct {
fs fs.FileSystem
@@ -73,6 +70,5 @@ func (f FakeLoader) Load(location string) ([]byte, error) {
// Cleanup does nothing
func (f FakeLoader) Cleanup() error {
CleanupCalled = true
return nil
}