Fix potential nil pointer problem when using multierror pkg (#1311)

This commit is contained in:
Ta-Ching Chen
2019-09-16 11:03:23 +08:00
committed by GitHub
parent 4d654c6fe7
commit 6d3d277cb9
10 changed files with 59 additions and 60 deletions
+1 -1
View File
@@ -558,7 +558,7 @@ func (deploy *NewDeploy) updateFuncDeployment(fn *fv1.Function, env *fv1.Environ
}
func (deploy *NewDeploy) fnDelete(fn *fv1.Function) error {
var multierr *multierror.Error
multierr := &multierror.Error{}
// GetByFunction uses resource version as part of cache key, however,
// the resource version in function metadata will be changed when a function