mirror of
https://github.com/mattermost/mattermost.git
synced 2026-05-28 04:35:04 -04:00
chore: fix typos in comments (#34960)
Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
3888a69479
commit
38e26fbd2d
7 changed files with 7 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue