Skip to content

Commit

Permalink
[PR-70]: Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kshitij-Katiyar committed Apr 15, 2024
1 parent 77baa81 commit efbc638
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/welcomebot.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (p *Plugin) processActionMessage(messageTemplate MessageTemplate, action *A
func (p *Plugin) joinChannel(action *Action, channelName string) {
// If it begins with @ create a DM channel
if strings.HasPrefix(channelName, "@") {
if err := p.handleDMs(action,channelName); err != nil {
if err := p.handleDMs(action, channelName); err != nil {
p.API.LogError("failed to handle DM channel, continuing to next channel. " + err.Error())
}

Expand Down Expand Up @@ -263,7 +263,7 @@ func (p *Plugin) handleDMs(action *Action, channelName string) error {

dmChannel, err := p.API.GetDirectChannel(dmUser.Id, action.Context.UserID)
if err != nil {
return errors.Wrapf(err, "Couldn't create or get DM channel for user_id %s and channel_id %s" , action.Context.UserID, dmChannel.Id)
return errors.Wrapf(err, "Couldn't create or get DM channel for user_id %s and channel_id %s", action.Context.UserID, dmChannel.Id)
}

dmMessage := "Welcome to the team!"
Expand Down

0 comments on commit efbc638

Please sign in to comment.