Skip to content

Commit

Permalink
trim prefix if supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
rusenask committed Apr 16, 2019
1 parent 6ce45cd commit cf6f442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/slack/slack.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (b *Bot) Configure(approvalsRespCh chan *bot.ApprovalResponse, botMessagesC

b.approvalsChannel = "general"
if channel := os.Getenv(constants.EnvSlackApprovalsChannel); channel != "" {
b.approvalsChannel = channel
b.approvalsChannel = strings.TrimPrefix(channel, "#")
}

b.slackClient = client
Expand Down

0 comments on commit cf6f442

Please sign in to comment.