Skip to content

Commit

Permalink
Address fabiolb#545 - wrong use function strings.HasPrefix
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuterko committed Mar 4, 2019
1 parent 0343e8b commit ddd1a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/consul/passing.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func isServiceCheck(c *api.HealthCheck) bool {
return c.ServiceID != "" &&
c.CheckID != "serfHealth" &&
c.CheckID != "_node_maintenance" &&
!strings.HasPrefix("_service_maintenance:", c.CheckID)
!strings.HasPrefix(c.CheckID, "_service_maintenance:")
}

// isAgentCritical returns true if the agent on the node on which the service
Expand Down

0 comments on commit ddd1a61

Please sign in to comment.