From 31c15063caa0ae1324e86a2503d7fd9377d6a485 Mon Sep 17 00:00:00 2001 From: srahul3 Date: Fri, 16 Jun 2023 20:03:51 +0530 Subject: [PATCH] fixing linting issue --- control-plane/catalog/to-consul/resource.go | 2 +- control-plane/catalog/to-consul/resource_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/control-plane/catalog/to-consul/resource.go b/control-plane/catalog/to-consul/resource.go index f20cb715f5..e02da6c71c 100644 --- a/control-plane/catalog/to-consul/resource.go +++ b/control-plane/catalog/to-consul/resource.go @@ -1026,7 +1026,7 @@ func consulHealthCheckID(k8sNS string, serviceID string) string { return fmt.Sprintf("%s/%s", k8sNS, serviceID) } -// Calculates the passing service weight +// Calculates the passing service weight. func getServiceWeight(weight string) (int, error) { // error validation if the input param is a number weightI, err := strconv.Atoi(weight) diff --git a/control-plane/catalog/to-consul/resource_test.go b/control-plane/catalog/to-consul/resource_test.go index 1742b7b1cc..3b8fb78497 100644 --- a/control-plane/catalog/to-consul/resource_test.go +++ b/control-plane/catalog/to-consul/resource_test.go @@ -134,7 +134,7 @@ func TestServiceWeight_externalIP(t *testing.T) { }) } -// Test service weight +// Test service weight. func TestServiceWeight(t *testing.T) { t.Parallel() cases := map[string]struct {