Periodic GoReportCard fixes

This commit is contained in:
Adrian Gallagher
2018-12-27 15:10:41 +11:00
parent c2cb2a4551
commit 046e15a67e
42 changed files with 344 additions and 350 deletions

View File

@@ -69,10 +69,7 @@ func (s *Slack) Setup(config config.CommunicationsConfig) {
// Connect connects to the service
func (s *Slack) Connect() error {
if err := s.NewConnection(); err != nil {
return err
}
return nil
return s.NewConnection()
}
// PushEvent pushes an event to either a slack channel or specific client
@@ -299,10 +296,7 @@ func (s *Slack) handleErrorResponse(data WebsocketResponse) error {
s.ReconnectURL = ""
s.Connected = false
if err := s.NewConnection(); err != nil {
return err
}
return nil
return s.NewConnection()
}
return fmt.Errorf("Unknown error '%s'", data.Error.Msg)
}