Skip to content

Commit

Permalink
FIx lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavaggarwal2308 committed Jul 23, 2024
1 parent e6fd92c commit 87b4165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"net/http"
"reflect"
"slices"
"strings"

"github.com/mattermost/mattermost/server/public/model"
Expand Down Expand Up @@ -533,7 +532,8 @@ func (p *Plugin) getUniqueTeamsWithWelcomeMsgSlice(teamsWithConfigWelcomeMsg map
teamsWithKVWelcomeKeys = append(teamsWithKVWelcomeKeys, team.Name)
}

allTeamNames := slices.Concat(teamsWithConfigWelcomeKeys, teamsWithKVWelcomeKeys)
allTeamNames := teamsWithConfigWelcomeKeys
allTeamNames = append(allTeamNames, teamsWithKVWelcomeKeys...)

// Leverage the unique priniciple of keys in a map to store unique values as they are encountered
teamNameMap := make(map[string]int)
Expand Down

0 comments on commit 87b4165

Please sign in to comment.