From 3cc3e88a577767eecac73a5f70ce400644db63de Mon Sep 17 00:00:00 2001 From: Mikhail Fesenko Date: Mon, 27 Nov 2023 12:43:54 +0100 Subject: [PATCH] simplified app/slashcommands/auto_teams.go: remove duplicate line of code (#21525) --- server/channels/app/slashcommands/auto_teams.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/channels/app/slashcommands/auto_teams.go b/server/channels/app/slashcommands/auto_teams.go index be6386b910..064266d3dc 100644 --- a/server/channels/app/slashcommands/auto_teams.go +++ b/server/channels/app/slashcommands/auto_teams.go @@ -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() }