Skip to content

Commit 454398a

Browse files
committed
go format
1 parent 3668595 commit 454398a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

pkg/provider/api.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type Channel struct {
6464
IsMpIM bool `json:"mpim"`
6565
IsIM bool `json:"im"`
6666
IsPrivate bool `json:"private"`
67-
User string `json:"user,omitempty"` // User ID for IM channels
67+
User string `json:"user,omitempty"` // User ID for IM channels
6868
Members []string `json:"members,omitempty"` // Member IDs for the channel
6969
}
7070

@@ -557,7 +557,7 @@ func (ap *ApiProvider) RefreshChannels(ctx context.Context) error {
557557
if c.IsIM {
558558
// Re-map the channel to get updated user name if available
559559
remappedChannel := mapChannel(
560-
c.ID, "", "", c.Topic, c.Purpose,
560+
c.ID, "", "", c.Topic, c.Purpose,
561561
c.User, c.Members, c.MemberCount,
562562
c.IsIM, c.IsMpIM, c.IsPrivate,
563563
usersMap,
@@ -781,7 +781,7 @@ func mapChannel(
781781
if isIM {
782782
finalMemberCount = 2
783783
userID = user // Store the user ID for later re-mapping
784-
784+
785785
// If user field is empty but we have members, try to extract from members
786786
if userID == "" && len(members) > 0 {
787787
// For IM channels, members should contain the other user's ID
@@ -793,7 +793,7 @@ func mapChannel(
793793
}
794794
}
795795
}
796-
796+
797797
if u, ok := usersMap[userID]; ok {
798798
channelName = "@" + u.Name
799799
finalPurpose = "DM with " + u.RealName

pkg/provider/edge/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (c IM) SlackChannel() slack.Channel {
106106
if c.User != "" {
107107
members = []string{c.User}
108108
}
109-
109+
110110
return slack.Channel{
111111
GroupConversation: slack.GroupConversation{
112112
Conversation: slack.Conversation{

pkg/provider/edge/client_boot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (c *UserBootChannel) SlackChannel() slack.Channel {
149149
}
150150
}
151151
}
152-
152+
153153
return slack.Channel{
154154
GroupConversation: slack.GroupConversation{
155155
Conversation: slack.Conversation{

pkg/test/util/mcp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"net"
99
"os"
1010
"os/exec"
11-
"strings"
1211
"strconv"
12+
"strings"
1313
"syscall"
1414
"time"
1515
)

0 commit comments

Comments
 (0)