Skip to content

Commit

Permalink
Merge pull request projectcontour#1038 from davecheney/linting
Browse files Browse the repository at this point in the history
all: fix a few lint warnings
  • Loading branch information
davecheney authored Apr 22, 2019
2 parents ccbb6be + c30cff7 commit 0d9fd45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion cmd/contour/contour.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func main() {
// once it attempts to log to files under /tmp, will crash the
// whole process since the path may not be accessible in
// container environment. See #959
flag.Lookup("logtostderr").Value.Set("true")
_ = flag.Lookup("logtostderr").Value.Set("true")

reh.IngressRouteRootNamespaces = parseRootNamespaces(ingressrouteRootNamespaceFlag)

Expand Down
6 changes: 2 additions & 4 deletions internal/dag/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3644,10 +3644,8 @@ func route(prefix string, services ...*HTTPService) *Route {

func routeCluster(prefix string, clusters ...*Cluster) *Route {
route := Route{
Prefix: prefix,
}
for _, c := range clusters {
route.Clusters = append(route.Clusters, c)
Prefix: prefix,
Clusters: clusters,
}
return &route
}
Expand Down
8 changes: 0 additions & 8 deletions internal/envoy/route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,3 @@ func TestUpgradeHTTPS(t *testing.T) {
t.Fatal(diff)
}
}

func services(svcs ...*v1.Service) (v []*dag.TCPService) {
for _, s := range svcs {
x := service(s)
v = append(v, &x)
}
return v
}

0 comments on commit 0d9fd45

Please sign in to comment.