mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
simplified app/slashcommands/auto_teams.go: remove duplicate line of code (#21525)
This commit is contained in:
parent
34209ac72b
commit
3cc3e88a57
@ -43,12 +43,12 @@ func (cfg *AutoTeamCreator) createRandomTeam() (*model.Team, error) {
|
||||
var teamEmail string
|
||||
var teamDisplayName string
|
||||
var teamName string
|
||||
|
||||
teamEmail = "success+" + model.NewId() + "simulator.amazonses.com"
|
||||
if cfg.Fuzzy {
|
||||
teamEmail = "success+" + model.NewId() + "simulator.amazonses.com"
|
||||
teamDisplayName = utils.FuzzName()
|
||||
teamName = model.NewRandomTeamName()
|
||||
} else {
|
||||
teamEmail = "success+" + model.NewId() + "simulator.amazonses.com"
|
||||
teamDisplayName = utils.RandomName(cfg.NameLength, cfg.NameCharset)
|
||||
teamName = utils.RandomName(cfg.NameLength, cfg.NameCharset) + model.NewId()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user