Skip to content

Commit

Permalink
fixing linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
srahul3 committed Jun 16, 2023
1 parent 21984e9 commit 31c1506
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion control-plane/catalog/to-consul/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion control-plane/catalog/to-consul/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 31c1506

Please sign in to comment.