Skip to content

Commit

Permalink
agent/http: fix service registration with nil checks value
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanuber committed Jan 24, 2015
1 parent b5e8111 commit 8b0fe52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/agent/agent_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (s *HTTPServer) AgentRegisterService(resp http.ResponseWriter, req *http.Re
case "checks":
chkTypes, ok := v.([]interface{})
if !ok {
return nil
continue
}
for _, chkType := range chkTypes {
if err := FixupCheckType(chkType); err != nil {
Expand Down

0 comments on commit 8b0fe52

Please sign in to comment.