diff --git a/server/channels/app/plugin_install.go b/server/channels/app/plugin_install.go index 1edc881e9b7..7d2da549a00 100644 --- a/server/channels/app/plugin_install.go +++ b/server/channels/app/plugin_install.go @@ -171,7 +171,7 @@ func (ch *Channels) removePluginFromClusterMessage(pluginID string) { } } -// InstallPlugin unpacks and installs a plugin but does not enable or activate it unless the the +// InstallPlugin unpacks and installs a plugin but does not enable or activate it unless the // plugin was already enabled. func (a *App) InstallPlugin(pluginFile io.ReadSeeker, replace bool) (*model.Manifest, *model.AppError) { installationStrategy := installPluginLocallyOnlyIfNew diff --git a/server/channels/app/session_test.go b/server/channels/app/session_test.go index 1a9635347ef..f17fb42e9db 100644 --- a/server/channels/app/session_test.go +++ b/server/channels/app/session_test.go @@ -442,7 +442,7 @@ func TestSessionsLimit(t *testing.T) { gotSessions, _ = th.App.GetSessions(th.Context, user.Id) require.Equal(t, maxSessionsLimit, len(gotSessions), "should have maxSessionsLimit number of sessions") - // Ensure the the oldest sessions were removed first. + // Ensure the oldest sessions were removed first. slices.Reverse(gotSessions) for i, sess := range gotSessions { require.Equal(t, sessions[i].Id, sess.Id) diff --git a/server/channels/app/status_test.go b/server/channels/app/status_test.go index b0abda7ffa4..e3781967991 100644 --- a/server/channels/app/status_test.go +++ b/server/channels/app/status_test.go @@ -35,7 +35,7 @@ func TestCustomStatus(t *testing.T) { require.Equal(t, cs, csSaved) err = th.App.RemoveCustomStatus(th.Context, user.Id) - require.Nil(t, err, "failed to to clear custom status %v", err) + require.Nil(t, err, "failed to clear custom status %v", err) var csClear *model.CustomStatus csSaved, err = th.App.GetCustomStatus(user.Id) diff --git a/server/cmd/mmctl/commands/auth_e2e_test.go b/server/cmd/mmctl/commands/auth_e2e_test.go index 690764a509a..92fa6ddcb9a 100644 --- a/server/cmd/mmctl/commands/auth_e2e_test.go +++ b/server/cmd/mmctl/commands/auth_e2e_test.go @@ -19,7 +19,7 @@ func (s *MmctlE2ETestSuite) TestAuthLoginWithTrailingSlashInInstanceURL() { // cobra wont let us run a subcommand directly. When we try to `Execute` // the subcommand, cobra executes the parent command. // Instead of calling RootCmd, with its various subcommands and options, - // we duplicate part of the the LoginCmd here. + // we duplicate part of the LoginCmd here. cmd := &cobra.Command{} cmd.Flags().StringP("name", "n", "name", "Name for the credentials") cmd.Flags().StringP("username", "u", s.th.BasicUser.Username, "Username for the credentials") diff --git a/server/cmd/mmctl/commands/importer/validate.go b/server/cmd/mmctl/commands/importer/validate.go index fbe6f71d1ae..f2f1cd6f996 100644 --- a/server/cmd/mmctl/commands/importer/validate.go +++ b/server/cmd/mmctl/commands/importer/validate.go @@ -740,7 +740,7 @@ func (v *Validator) validateBot(info ImportFileInfo, line imports.LineImportData } if data.Username != nil { - // e-mails are for bots are converted to the the username@localhost format + // e-mails are for bots are converted to the username@localhost format // see model.BotFromUser botMail := model.NormalizeEmail(fmt.Sprintf("%s@localhost", *data.Username)) if ive := v.checkDuplicateUser(info, *data.Username, botMail); ive != nil { diff --git a/server/public/plugin/client_rpc.go b/server/public/plugin/client_rpc.go index 740edfbaa24..2ab96c372f8 100644 --- a/server/public/plugin/client_rpc.go +++ b/server/public/plugin/client_rpc.go @@ -58,7 +58,7 @@ import ( var hookNameToId = make(map[string]int) -// hooksRPCClient is the client-side RPC proxy that runs in the Mattermost server process and connects to to the [hooksRPCServer] on the plugin side. +// hooksRPCClient is the client-side RPC proxy that runs in the Mattermost server process and connects to the [hooksRPCServer] on the plugin side. // It implements the Hooks interface and forwards hook invocations to plugins running in // separate processes via RPC. // diff --git a/server/public/plugin/supervisor.go b/server/public/plugin/supervisor.go index 48ada556b2f..0d9b383a2a7 100644 --- a/server/public/plugin/supervisor.go +++ b/server/public/plugin/supervisor.go @@ -198,7 +198,7 @@ func (sup *supervisor) Hooks() Hooks { return sup.hooks } -// PerformHealthCheck checks the plugin through an an RPC ping. +// PerformHealthCheck checks the plugin through an RPC ping. func (sup *supervisor) PerformHealthCheck() error { // No need for a lock here because Ping is read-locked. if pingErr := sup.Ping(); pingErr != nil {