From 1cc1fac151f99f23c2786a16c7e1ff56caa276ac Mon Sep 17 00:00:00 2001 From: Andrew Stuart Date: Tue, 31 Jan 2017 08:25:57 -0700 Subject: [PATCH] Satisfy golint, clarify logic --- fission/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fission/common.go b/fission/common.go index a4926fca..1e56677d 100644 --- a/fission/common.go +++ b/fission/common.go @@ -35,10 +35,10 @@ func getClient(serverUrl string) *client.Client { fatal("Need --server or FISSION_URL set to your fission server.") } - isHttps := strings.Index(serverUrl, "https://") == 0 - isHttp := strings.Index(serverUrl, "http://") == 0 + isHTTPS := strings.Index(serverUrl, "https://") == 0 + isHTTP := strings.Index(serverUrl, "http://") == 0 - if !isHttp && !isHttps { + if !(isHTTP || isHTTPS) { serverUrl = "http://" + serverUrl }