From 493aede7fe5bfcc7ed3fdf03d78c850e49b6f5e2 Mon Sep 17 00:00:00 2001 From: danielqsj Date: Wed, 30 Aug 2017 17:03:50 +0800 Subject: [PATCH] Delete useless statement --- controllers/nginx/pkg/template/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/nginx/pkg/template/template.go b/controllers/nginx/pkg/template/template.go index 8acb192bf..ea917ab5e 100644 --- a/controllers/nginx/pkg/template/template.go +++ b/controllers/nginx/pkg/template/template.go @@ -301,7 +301,7 @@ func buildProxyPass(host string, b interface{}, loc interface{}) string { return defProxyPass } - if path != slash && !strings.HasSuffix(path, slash) { + if !strings.HasSuffix(path, slash) { path = fmt.Sprintf("%s/", path) }