Skip to content

Commit

Permalink
fix: split an error and assignmet statement
Browse files Browse the repository at this point in the history
Now the all the variables it assigns are actually assigned so the binary
will build
  • Loading branch information
James Conroy committed Jul 26, 2024
1 parent 9870ca5 commit bb0fb96
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions remote/mattermost/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,16 @@ func (c *Client) Reaction(_ models.Message, rule models.Rule, _ *models.Bot) {
if rule.Reaction != "" {
log.Debug().Msg("reactions not implemented for mattermost")
}

}

func (c *Client) Read(inputMsgs chan<- models.Message, _ map[string]models.Rule, bot *models.Bot) {
func (c *Client) Read(inputMsgs chan<- models.Message, _ map[string]models.Rule, _ *models.Bot) {
api := c.new()
if user, resp, err := api.GetUser("me", ""); err != nil {

user, resp, err := api.GetUser("me", "")
if err != nil {
log.Fatal().Msgf("could not login, %s", err)
}

log.Info().Interface("user", user.Username).Interface("resp", resp).Msg("")
log.Info().Msg("logged in to mattermost")

Expand Down

0 comments on commit bb0fb96

Please sign in to comment.