From ba8f11d4a95937188d2681112bede2587b9727e1 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 7 Jan 2020 17:07:11 +0100 Subject: [PATCH] Fix variable name Signed-off-by: David Gageot --- pkg/skaffold/schema/defaults/defaults.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/skaffold/schema/defaults/defaults.go b/pkg/skaffold/schema/defaults/defaults.go index 581a0b4e9d1..1b157a6a051 100644 --- a/pkg/skaffold/schema/defaults/defaults.go +++ b/pkg/skaffold/schema/defaults/defaults.go @@ -108,9 +108,9 @@ func defaultToKubectlDeploy(c *latest.SkaffoldConfig) { } func withLocalBuild(c *latest.SkaffoldConfig, operations ...func(*latest.LocalBuild)) { - if gcb := c.Build.LocalBuild; gcb != nil { + if local := c.Build.LocalBuild; local != nil { for _, operation := range operations { - operation(gcb) + operation(local) } } }