all: gometalinter (#843)

* kubernetes/reverse: remove deadcode
* deadcode in errors and kubernetes removed
* unnecessary conversion
* constants
* proxy: time.Since()
* simplications
* static check
* Disable test/external_test
This commit is contained in:
Miek Gieben
2017-08-06 05:54:24 -07:00
committed by GitHub
parent 964f04f443
commit bcb2eb1ecc
25 changed files with 105 additions and 150 deletions

View File

@@ -97,7 +97,7 @@ func traceParse(c *caddy.Controller) (*trace, error) {
func normalizeEndpoint(epType, ep string) (string, error) {
switch epType {
case "zipkin":
if strings.Index(ep, "http") == -1 {
if !strings.Contains(ep, "http") {
ep = "http://" + ep + "/api/v1/spans"
}
return ep, nil