chore: fix typos in comments (#34960)

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
yy 2026-04-03 22:43:25 +09:00 committed by GitHub
parent 3888a69479
commit 38e26fbd2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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)

View file

@ -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)

View file

@ -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")

View file

@ -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 {

View file

@ -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.
//

View file

@ -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 {