Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ecbf4da

Browse files
committedAug 19, 2022
Fixing style errors.
1 parent 16852e3 commit ecbf4da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎pkg/ircslack/channel.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (c *Channel) IsPublicChannel() bool {
101101

102102
// IsPrivateChannel returns true if the channel is private.
103103
func (c *Channel) IsPrivateChannel() bool {
104-
return (c.IsGroup||c.IsChannel) && c.IsPrivate
104+
return (c.IsGroup || c.IsChannel) && c.IsPrivate
105105
}
106106

107107
// IsMP returns true if it is a multi-party conversation.

‎pkg/ircslack/irc_context.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ func (ic *IrcContext) Start() {
9999
if message.TargetTs != "" {
100100
opts = append(opts, slack.MsgOptionTS(message.TargetTs))
101101
if target[1] == ChannelPrefixThread[0] {
102-
idx := strings.Index(target,message.TargetTs)
102+
idx := strings.Index(target, message.TargetTs)
103103
// strip the prefixes and the '-timestamp'
104-
target = target[2:idx-1]
104+
target = target[2 : idx-1]
105105
}
106106
}
107107
if _, _, err := ic.SlackClient.PostMessage(target, opts...); err != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.