From 96947b8ca4630e8c70b525f95ddf6eee1a47fa01 Mon Sep 17 00:00:00 2001 From: Tejal Desai Date: Fri, 23 Aug 2019 13:13:14 -0700 Subject: [PATCH] fix lint --- pkg/executor/push.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/executor/push.go b/pkg/executor/push.go index 6508c7bd0..486bcd32a 100644 --- a/pkg/executor/push.go +++ b/pkg/executor/push.go @@ -46,12 +46,12 @@ type withUserAgent struct { } const ( - UPSTREAM_CLIENT_UA_KEY = "UPSTREAM_CLIENT_TYPE" + UpstreamClientUaKey = "UPSTREAM_CLIENT_TYPE" ) func (w *withUserAgent) RoundTrip(r *http.Request) (*http.Response, error) { ua := []string{fmt.Sprintf("kaniko/%s", version.Version())} - if upstream := os.Getenv(UPSTREAM_CLIENT_UA_KEY); upstream != "" { + if upstream := os.Getenv(UpstreamClientUaKey); upstream != "" { ua = append(ua, upstream) } r.Header.Set("User-Agent", strings.Join(ua, ","))