Skip to content

Commit

Permalink
Fixing style errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
stickler-ci committed Aug 19, 2022
1 parent 16852e3 commit ecbf4da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/ircslack/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (c *Channel) IsPublicChannel() bool {

// IsPrivateChannel returns true if the channel is private.
func (c *Channel) IsPrivateChannel() bool {
return (c.IsGroup||c.IsChannel) && c.IsPrivate
return (c.IsGroup || c.IsChannel) && c.IsPrivate
}

// IsMP returns true if it is a multi-party conversation.
Expand Down
4 changes: 2 additions & 2 deletions pkg/ircslack/irc_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ func (ic *IrcContext) Start() {
if message.TargetTs != "" {
opts = append(opts, slack.MsgOptionTS(message.TargetTs))
if target[1] == ChannelPrefixThread[0] {
idx := strings.Index(target,message.TargetTs)
idx := strings.Index(target, message.TargetTs)
// strip the prefixes and the '-timestamp'
target = target[2:idx-1]
target = target[2 : idx-1]
}
}
if _, _, err := ic.SlackClient.PostMessage(target, opts...); err != nil {
Expand Down

0 comments on commit ecbf4da

Please sign in to comment.